Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
df29cdd3
Commit
df29cdd3
authored
May 15, 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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
doc/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