Skip to content

Commit a04b3c9

Browse files
cuishuanggopherbot
authored andcommitted
_content/doc/progs: use a more straightforward return value
Change-Id: I78c2f47f069e5c48ba22ffc12c8bb51ccd858ded Reviewed-on: https://go-review.googlesource.com/c/website/+/653255 Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 8ff0ac7 commit a04b3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_content/doc/progs/interface.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func typeAssertions() (interface{}, error) { // OMIT
5555
var empty interface{}
5656
empty = w
5757
// STOP OMIT
58-
return empty, err
58+
return empty, nil
5959
}
6060

6161
func main() {

0 commit comments

Comments
 (0)