mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00:00
doc: escape some HTML in Effective Go code examples
Change-Id: I4204e268c7220a50ceb270432067850ec2b5af80 Reviewed-on: https://go-review.googlesource.com/41230 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
01b1a34aac
commit
868bb5d2f2
|
@ -1833,7 +1833,7 @@ for a min function that chooses the least of a list of integers:
|
|||
</p>
|
||||
<pre>
|
||||
func Min(a ...int) int {
|
||||
min := int(^uint(0) >> 1) // largest int
|
||||
min := int(^uint(0) >> 1) // largest int
|
||||
for _, i := range a {
|
||||
if i < min {
|
||||
min = i
|
||||
|
|
Loading…
Reference in a new issue