From: Francisco Souza
Date: Wed, 21 Mar 2012 23:42:04 +0000 (-0700)
Subject: doc: fix typo in The Laws of Reflection article
X-Git-Tag: weekly.2012-03-22~14
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2b3d6cb5e6c8ecf6b9f7917ed84b22c94f7c906d;p=gostls13.git
doc: fix typo in The Laws of Reflection article
R=golang-dev, gri, r
CC=golang-dev
https://golang.org/cl/5876047
---
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):
-{{code "/doc/progs/interface2.go" `/var x/` `/STOP/`}}
+{{code "/doc/progs/interface2.go" `/START f9/` `/STOP/`}}
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
+}