diff options
author | Francisco Souza <franciscossouza@gmail.com> | 2012-03-21 16:42:04 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2012-03-21 16:42:04 -0700 |
commit | 2b3d6cb5e6c8ecf6b9f7917ed84b22c94f7c906d (patch) | |
tree | e0da96ffa49e37f56c065b687068d9e3154088a3 | |
parent | f5f80368c4be5f477a46fb40d455b97890efda7c (diff) | |
download | go-2b3d6cb5e6c8ecf6b9f7917ed84b22c94f7c906d.tar.gz go-2b3d6cb5e6c8ecf6b9f7917ed84b22c94f7c906d.zip |
doc: fix typo in The Laws of Reflection article
R=golang-dev, gri, r
CC=golang-dev
https://golang.org/cl/5876047
-rw-r--r-- | doc/articles/laws_of_reflection.html | 2 | ||||
-rw-r--r-- | doc/progs/interface2.go | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/articles/laws_of_reflection.html b/doc/articles/laws_of_reflection.html index ca729508bb..a6175f73c1 100644 --- a/doc/articles/laws_of_reflection.html +++ b/doc/articles/laws_of_reflection.html @@ -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 diff --git a/doc/progs/interface2.go b/doc/progs/interface2.go index 2deba32b46..a541d94e48 100644 --- a/doc/progs/interface2.go +++ b/doc/progs/interface2.go @@ -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 +} |