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
2b3d6cb5
Commit
2b3d6cb5
authored
Mar 21, 2012
by
Francisco Souza
Committed by
Robert Griesemer
Mar 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: fix typo in The Laws of Reflection article
R=golang-dev, gri, r CC=golang-dev
https://golang.org/cl/5876047
parent
f5f80368
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
doc/articles/laws_of_reflection.html
doc/articles/laws_of_reflection.html
+1
-1
doc/progs/interface2.go
doc/progs/interface2.go
+7
-0
No files found.
doc/articles/laws_of_reflection.html
View file @
2b3d6cb5
...
...
@@ -238,7 +238,7 @@ value (from here on we'll elide the boilerplate and focus just on
the executable code):
</p>
{{code "/doc/progs/interface2.go" `/
var x
/` `/STOP/`}}
{{code "/doc/progs/interface2.go" `/
START f9
/` `/STOP/`}}
<p>
prints
...
...
doc/progs/interface2.go
View file @
2b3d6cb5
...
...
@@ -123,3 +123,10 @@ func f8() {
fmt
.
Println
(
"t is now"
,
t
)
// STOP OMIT
}
func
f9
()
{
// START f9 OMIT
var
x
float64
=
3.4
fmt
.
Println
(
"value:"
,
reflect
.
ValueOf
(
x
))
// STOP OMIT
}
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