]> Cypherpunks repositories - gostls13.git/commitdiff
doc: escape some HTML in Effective Go code examples
authorJames Neve <jamesoneve@gmail.com>
Thu, 20 Apr 2017 09:26:05 +0000 (18:26 +0900)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 20 Apr 2017 16:29:19 +0000 (16:29 +0000)
Change-Id: I4204e268c7220a50ceb270432067850ec2b5af80
Reviewed-on: https://go-review.googlesource.com/41230
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/effective_go.html

index bbd7f24d483af3a03e7597c20f1e7146679c6859..bc70b0c8e3fc1f4fc9872e38e3668adeafd10de4 100644 (file)
@@ -1833,7 +1833,7 @@ for a min function that chooses the least of a list of integers:
 </p>
 <pre>
 func Min(a ...int) int {
-    min := int(^uint(0) >> 1)  // largest int
+    min := int(^uint(0) &gt;&gt; 1)  // largest int
     for _, i := range a {
         if i &lt; min {
             min = i