Commit 2b3d6cb5 authored by Francisco Souza's avatar Francisco Souza Committed by Robert Griesemer

doc: fix typo in The Laws of Reflection article

R=golang-dev, gri, r
CC=golang-dev
https://golang.org/cl/5876047
parent f5f80368
...@@ -238,7 +238,7 @@ value (from here on we'll elide the boilerplate and focus just on ...@@ -238,7 +238,7 @@ value (from here on we'll elide the boilerplate and focus just on
the executable code): the executable code):
</p> </p>
{{code "/doc/progs/interface2.go" `/var x/` `/STOP/`}} {{code "/doc/progs/interface2.go" `/START f9/` `/STOP/`}}
<p> <p>
prints prints
......
...@@ -123,3 +123,10 @@ func f8() { ...@@ -123,3 +123,10 @@ func f8() {
fmt.Println("t is now", t) fmt.Println("t is now", t)
// STOP OMIT // STOP OMIT
} }
func f9() {
// START f9 OMIT
var x float64 = 3.4
fmt.Println("value:", reflect.ValueOf(x))
// STOP OMIT
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment