From 2b3d6cb5e6c8ecf6b9f7917ed84b22c94f7c906d Mon Sep 17 00:00:00 2001
From: Francisco Souza
Date: Wed, 21 Mar 2012 16:42:04 -0700
Subject: [PATCH] doc: fix typo in The Laws of Reflection article
R=golang-dev, gri, r
CC=golang-dev
https://golang.org/cl/5876047
---
doc/articles/laws_of_reflection.html | 2 +-
doc/progs/interface2.go | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/doc/articles/laws_of_reflection.html b/doc/articles/laws_of_reflection.html
index ca729508bb2..a6175f73c1a 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 2deba32b464..a541d94e483 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
+}