From 3ba7b9f7478f54338bd3ca7ac55cc2ad1ffcb3a4 Mon Sep 17 00:00:00 2001
From: Oliver Eikemeier
Unless the LiteralType is a type parameter,
-its underlying type
+its underlying type
must be a struct, array, slice, or map type
(the syntax enforces this constraint except when the type is given
as a TypeName).
@@ -4873,7 +4873,7 @@ Composite literals
Operator precedence
x <= f() // x <= f()
^a >> b // (^a) >> b
f() || g() // f() || g()
-x == y+1 && <-chanInt > 0 // (x == (y+1)) && ((<-chanInt) > 0)
+x == y+1 && <-chanInt > 0 // (x == (y+1)) && ((<-chanInt) > 0)
@@ -6635,7 +6635,7 @@ For statements with
for clause
var prints []func()
-for i := 0; i < 5; i++ {
+for i := 0; i < 5; i++ {
prints = append(prints, func() { println(i) })
i++
}
@@ -6772,7 +6772,7 @@ For statements with
variable, which must be of integer type.
Otherwise, if the iteration variable is declared by the "range" clause or is absent,
the type of the iteration values is the default type for range clausen.
-If n <= 0, the loop does not run any iterations.
+If n <= 0, the loop does not run any iterations.
Min and max
-min(x, y) == if x <= y then x else y +min(x, y) == if x <= y then x else y min(x, y, z) == min(min(x, y), z)