mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
net/trace: fix comment typo
Abbreviating "if and only if" to "iff" is against Go style in public documentation; use expanded form. Change-Id: I23afdca1b773ef9572794555dfb768c9ded90ab7 Reviewed-on: https://go-review.googlesource.com/22545 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
1aafd77e1e
commit
35ec611a14
@@ -93,7 +93,8 @@ var DebugUseAfterFinish = false
|
||||
//
|
||||
// AuthRequest may be replaced by a program to customise its authorisation requirements.
|
||||
//
|
||||
// The default AuthRequest function returns (true, true) iff the request comes from localhost/127.0.0.1/[::1].
|
||||
// The default AuthRequest function returns (true, true) if and only if the request
|
||||
// comes from localhost/127.0.0.1/[::1].
|
||||
var AuthRequest = func(req *http.Request) (any, sensitive bool) {
|
||||
// RemoteAddr is commonly in the form "IP" or "IP:port".
|
||||
// If it is in the form "IP:port", split off the port.
|
||||
|
||||
Reference in New Issue
Block a user