mirror of
https://github.com/golang/go
synced 2024-11-18 14:54:40 -07:00
all: fix typo in doc
Change-Id: I89fdda2914030dfea3183a8b4681dd4b33489729 Reviewed-on: https://go-review.googlesource.com/4996 Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
5c8f9e38eb
commit
d866cd6817
@ -132,7 +132,7 @@ func (ip IP) IsMulticast() bool {
|
||||
return ip[0] == 0xff
|
||||
}
|
||||
|
||||
// IsInterfaceLinkLocalMulticast returns true if ip is
|
||||
// IsInterfaceLocalMulticast returns true if ip is
|
||||
// an interface-local multicast address.
|
||||
func (ip IP) IsInterfaceLocalMulticast() bool {
|
||||
return len(ip) == IPv6len && ip[0] == 0xff && ip[1]&0x0f == 0x01
|
||||
|
@ -33,7 +33,7 @@ func ExpandEnv(s string) string {
|
||||
return Expand(s, Getenv)
|
||||
}
|
||||
|
||||
// isSpellSpecialVar reports whether the character identifies a special
|
||||
// isShellSpecialVar reports whether the character identifies a special
|
||||
// shell variable such as $*.
|
||||
func isShellSpecialVar(c uint8) bool {
|
||||
switch c {
|
||||
|
@ -314,7 +314,7 @@ func RaceReleaseMerge(addr unsafe.Pointer) {
|
||||
|
||||
//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() {
|
||||
_g_ := getg()
|
||||
if _g_.raceignore == 0 {
|
||||
@ -325,7 +325,7 @@ func RaceDisable() {
|
||||
|
||||
//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() {
|
||||
_g_ := getg()
|
||||
_g_.raceignore--
|
||||
|
Loading…
Reference in New Issue
Block a user