Commit d866cd68 authored by Yasuhiro Matsumoto's avatar Yasuhiro Matsumoto Committed by Minux Ma

all: fix typo in doc

Change-Id: I89fdda2914030dfea3183a8b4681dd4b33489729
Reviewed-on: https://go-review.googlesource.com/4996Reviewed-by: default avatarMinux Ma <minux@golang.org>
parent 5c8f9e38
...@@ -132,7 +132,7 @@ func (ip IP) IsMulticast() bool { ...@@ -132,7 +132,7 @@ func (ip IP) IsMulticast() bool {
return ip[0] == 0xff return ip[0] == 0xff
} }
// IsInterfaceLinkLocalMulticast returns true if ip is // IsInterfaceLocalMulticast returns true if ip is
// an interface-local multicast address. // an interface-local multicast address.
func (ip IP) IsInterfaceLocalMulticast() bool { func (ip IP) IsInterfaceLocalMulticast() bool {
return len(ip) == IPv6len && ip[0] == 0xff && ip[1]&0x0f == 0x01 return len(ip) == IPv6len && ip[0] == 0xff && ip[1]&0x0f == 0x01
......
...@@ -33,7 +33,7 @@ func ExpandEnv(s string) string { ...@@ -33,7 +33,7 @@ func ExpandEnv(s string) string {
return Expand(s, Getenv) return Expand(s, Getenv)
} }
// isSpellSpecialVar reports whether the character identifies a special // isShellSpecialVar reports whether the character identifies a special
// shell variable such as $*. // shell variable such as $*.
func isShellSpecialVar(c uint8) bool { func isShellSpecialVar(c uint8) bool {
switch c { switch c {
......
...@@ -314,7 +314,7 @@ func RaceReleaseMerge(addr unsafe.Pointer) { ...@@ -314,7 +314,7 @@ func RaceReleaseMerge(addr unsafe.Pointer) {
//go:nosplit //go:nosplit
// RaceEnable re-enables handling of race events in the current goroutine. // RaceDisable disables handling of race events in the current goroutine.
func RaceDisable() { func RaceDisable() {
_g_ := getg() _g_ := getg()
if _g_.raceignore == 0 { if _g_.raceignore == 0 {
...@@ -325,7 +325,7 @@ func RaceDisable() { ...@@ -325,7 +325,7 @@ func RaceDisable() {
//go:nosplit //go:nosplit
// RaceDisable disables handling of race events in the current goroutine. // RaceEnable re-enables handling of race events in the current goroutine.
func RaceEnable() { func RaceEnable() {
_g_ := getg() _g_ := getg()
_g_.raceignore-- _g_.raceignore--
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment