]> Cypherpunks repositories - gostls13.git/commitdiff
go1: fix old reference to Sys method
authorRob Pike <r@golang.org>
Sun, 12 Feb 2012 21:05:53 +0000 (08:05 +1100)
committerRob Pike <r@golang.org>
Sun, 12 Feb 2012 21:05:53 +0000 (08:05 +1100)
The example was fixed; the simplifying rewrite was missed.

R=golang-dev
CC=golang-dev
https://golang.org/cl/5651080

doc/go1.html
doc/go1.tmpl

index 6e63882f09f95c553f2b7ca1fe550822d9ea0f69..c681eff3b6af29f35998a00f0f8d43111d8e7243 100644 (file)
@@ -1461,7 +1461,7 @@ the i-number expression could be contracted to
 </p>
 
 <pre>
-    fi.(*os.FileStat).Sys.(*syscall.Stat_t).Ino
+    fi.Sys().(*syscall.Stat_t).Ino
 </pre>
 
 <p>
index 862fe0ed4357b0ddc3cd8fd04ce26139dee95f6a..9cdbf4bad6474fe615cc6c7b86d18260334a6dd8 100644 (file)
@@ -1364,7 +1364,7 @@ the i-number expression could be contracted to
 </p>
 
 <pre>
-    fi.(*os.FileStat).Sys.(*syscall.Stat_t).Ino
+    fi.Sys().(*syscall.Stat_t).Ino
 </pre>
 
 <p>