Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
df29cdd3
Commit
df29cdd3
authored
May 14, 2013
by
Shenghou Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/go_spec: fix typos
Fixes #5456. R=golang-dev, r CC=golang-dev
https://golang.org/cl/9400044
parent
27f7e3b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
go_spec.html
doc/go_spec.html
+5
-5
No files found.
doc/go_spec.html
View file @
df29cdd3
<!--{
"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.M
v
</code>
is equivalent to
<code>
(
&
t).Mv
</code>
.
using an addressable value will automatically take the address of that value:
<code>
t.M
p
</code>
is equivalent to
<code>
(
&
t).Mp
</code>
.
</p>
<pre>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment