1
0
mirror of https://github.com/golang/go synced 2024-11-24 23:07:56 -07:00

doc: fix typo in The Laws of Reflection article

R=golang-dev, gri, r
CC=golang-dev
https://golang.org/cl/5876047
This commit is contained in:
Francisco Souza 2012-03-21 16:42:04 -07:00 committed by Robert Griesemer
parent f5f80368c4
commit 2b3d6cb5e6
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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
}