From: Brian G. Merrell Date: Mon, 27 May 2013 01:00:12 +0000 (+1000) Subject: effective_go.html: Fix two links X-Git-Tag: go1.2rc2~1405 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=20c524c5e29282d3c91e8155c496865dee2c3c73;p=gostls13.git effective_go.html: Fix two links 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 --- diff --git a/doc/effective_go.html b/doc/effective_go.html index 1b3168683a..9b0bb7948e 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -2536,7 +2536,7 @@ package, which defines a 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 type assertion like: +The encoder checks this property at run time with a type assertion like:

@@ -3254,7 +3254,7 @@ for try := 0; try < 2; try++ {
 

-The second if statement here is another type assertion. +The second if statement here is another type assertion. If it fails, ok will be false, and e will be nil. If it succeeds, ok will be true, which means the