1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:20:11 -07:00

effective_go: move 'Type switch' section into 'Control structures' section.

Needs to be an h3, not an h2.
Thanks to Mingjie Xing for pointing it out.

LGTM=dsymonds
R=golang-codereviews, dsymonds
CC=golang-codereviews
https://golang.org/cl/55980046
This commit is contained in:
Rob Pike 2014-01-23 16:26:42 -08:00
parent be5d2d4432
commit 592415d682

View File

@ -850,7 +850,7 @@ func Compare(a, b []byte) int {
}
</pre>
<h2 id="type_switch">Type switch</h2>
<h3 id="type_switch">Type switch</h3>
<p>
A switch can also be used to discover the dynamic type of an interface