]> Cypherpunks repositories - gostls13.git/commitdiff
spec: better variable name for operator example
authorRobert Griesemer <gri@golang.org>
Thu, 24 Sep 2020 19:44:19 +0000 (12:44 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 24 Sep 2020 20:41:14 +0000 (20:41 +0000)
Suggested by @yaxinlx.

Fixes #41612.

Change-Id: I98b9968a95d090ee3c67ff02678e1874e6d98c33
Reviewed-on: https://go-review.googlesource.com/c/go/+/257159
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go_spec.html

index 154bdbfeaf9643eccc03a50d8536d88ec683511e..e9e9e4213082a3f5cae174228a53483be7b12a0e 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of Jan 14, 2020",
+       "Subtitle": "Version of Sep 24, 2020",
        "Path": "/ref/spec"
 }-->
 
@@ -3646,7 +3646,7 @@ For instance, <code>x / y * z</code> is the same as <code>(x / y) * z</code>.
 x &lt;= f()
 ^a &gt;&gt; b
 f() || g()
-x == y+1 &amp;&amp; &lt;-chanPtr &gt; 0
+x == y+1 &amp;&amp; &lt;-chanInt &gt; 0
 </pre>