1
0
mirror of https://github.com/golang/go synced 2024-11-21 15:14:43 -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):
</p>
{{code "/doc/progs/interface2.go" `/var x/` `/STOP/`}}
{{code "/doc/progs/interface2.go" `/START f9/` `/STOP/`}}
<p>
prints

View File

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