net : fix error msg
from os.hostname() cannot get the host name to net.hostname() cannot get the host namepull/1216/head
parent
0ca58aba5e
commit
9d4b4df54f
|
@ -7,7 +7,7 @@ pub fn hostname() ?string {
|
|||
// The host name is returned as a null-terminated string.
|
||||
res := C.gethostname(&name, 256)
|
||||
if res != 0 {
|
||||
return error('os.hostname() cannot get the host name')
|
||||
return error('net.hostname() cannot get the host name')
|
||||
}
|
||||
return tos_clone(name)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue