]> Cypherpunks repositories - gostls13.git/commitdiff
effective_go.html: Fix two links
authorBrian G. Merrell <bgmerrell@gmail.com>
Mon, 27 May 2013 01:00:12 +0000 (11:00 +1000)
committerDavid Symonds <dsymonds@golang.org>
Mon, 27 May 2013 01:00:12 +0000 (11:00 +1000)
This fixes two intra-page "type assertion" links that were broken in
different ways.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/9797043

doc/effective_go.html

index 1b3168683a5b6542772fa07830fb9fde3eed5085..9b0bb7948e2147b7f1ff913bdb7b204b65999321 100644 (file)
@@ -2536,7 +2536,7 @@ package, which defines a <code><a href="/pkg/encoding/json/#Marshaler">Marshaler
 interface. When the JSON encoder receives a value that implements that interface,
 the encoder invokes the value's marshaling method to convert it to JSON
 instead of doing the standard conversion.
-The encoder checks this property at run time with a <a href="interface_conversions">type assertion</a> like:
+The encoder checks this property at run time with a <a href="#interface_conversions">type assertion</a> like:
 </p>
 
 <pre>
@@ -3254,7 +3254,7 @@ for try := 0; try &lt; 2; try++ {
 </pre>
 
 <p>
-The second <code>if</code> statement here is another <a href="#interface_conversion">type assertion</a>.
+The second <code>if</code> statement here is another <a href="#interface_conversions">type assertion</a>.
 If it fails, <code>ok</code> will be false, and <code>e</code>
 will be <code>nil</code>.
 If it succeeds,  <code>ok</code> will be true, which means the