Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
f3ad899a
Commit
f3ad899a
authored
Apr 05, 2011
by
Mikio Hara
Committed by
Andrew Gerrand
Apr 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: fix typo
R=golang-dev, adg CC=golang-dev
https://golang.org/cl/4315049
parent
94e60061
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/pkg/net/hosts.go
src/pkg/net/hosts.go
+2
-2
No files found.
src/pkg/net/hosts.go
View file @
f3ad899a
...
...
@@ -59,7 +59,7 @@ func readHosts() {
}
}
// lookupStaticHost
s
looks up the addresses for the given host from /etc/hosts.
// lookupStaticHost looks up the addresses for the given host from /etc/hosts.
func
lookupStaticHost
(
host
string
)
[]
string
{
hosts
.
Lock
()
defer
hosts
.
Unlock
()
...
...
@@ -72,7 +72,7 @@ func lookupStaticHost(host string) []string {
return
nil
}
//
rlookupStaticHosts
looks up the hosts for the given address from /etc/hosts.
//
lookupStaticAddr
looks up the hosts for the given address from /etc/hosts.
func
lookupStaticAddr
(
addr
string
)
[]
string
{
hosts
.
Lock
()
defer
hosts
.
Unlock
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment