mirror of
https://github.com/golang/go
synced 2024-11-21 21:24:45 -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:
parent
f5f80368c4
commit
2b3d6cb5e6
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user