mirror of
https://github.com/golang/go
synced 2024-11-12 03:40:21 -07:00
doc/go_spec: fix typos
Fixes #5456. R=golang-dev, r CC=golang-dev https://golang.org/cl/9400044
This commit is contained in:
parent
27f7e3b217
commit
df29cdd33d
@ -1,6 +1,6 @@
|
||||
<!--{
|
||||
"Title": "The Go Programming Language Specification",
|
||||
"Subtitle": "Version of May 8, 2013",
|
||||
"Subtitle": "Version of May 14, 2013",
|
||||
"Path": "/ref/spec"
|
||||
}-->
|
||||
|
||||
@ -1969,9 +1969,9 @@ a <a href="#Terminating_statements">terminating statement</a>.
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
func findMarker(c <-chan int) int {
|
||||
func findMarker(c <-chan int) int {
|
||||
for i := range c {
|
||||
if x := <-c; isMarker(x) {
|
||||
if x := <-c; isMarker(x) {
|
||||
return x
|
||||
}
|
||||
}
|
||||
@ -3240,7 +3240,7 @@ is also allowed and follows from the general rules above.
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
const c = 3 < 4 // c is the untyped bool constant true
|
||||
const c = 3 < 4 // c is the untyped bool constant true
|
||||
|
||||
type MyBool bool
|
||||
var x, y int
|
||||
@ -3550,7 +3550,7 @@ using a pointer will automatically dereference that pointer: <code>pt.Mv</code>
|
||||
|
||||
<p>
|
||||
As with <a href="#Calls">method calls</a>, a reference to a non-interface method with a pointer receiver
|
||||
using an addressable value will automatically take the address of that value: <code>t.Mv</code> is equivalent to <code>(&t).Mv</code>.
|
||||
using an addressable value will automatically take the address of that value: <code>t.Mp</code> is equivalent to <code>(&t).Mp</code>.
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
|
Loading…
Reference in New Issue
Block a user