From 3ba7b9f7478f54338bd3ca7ac55cc2ad1ffcb3a4 Mon Sep 17 00:00:00 2001 From: Oliver Eikemeier Date: Sun, 5 Oct 2025 13:45:45 +0200 Subject: [PATCH] spec: close tag Close an tag. While we are here, fix some escapes. Signed-off-by: Oliver Eikemeier --- doc/go_spec.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 92afe1cee0baef..d6c7962a961b88 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -3173,7 +3173,7 @@

Composite literals

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 @@

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 range clause

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 n. -If n <= 0, the loop does not run any iterations. +If n <= 0, the loop does not run any iterations.
  • @@ -7799,7 +7799,7 @@

    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)