net : fix error msg

from 
os.hostname() cannot get the host name
to
net.hostname() cannot get the host name
pull/1216/head
unknown-v 2019-07-17 15:51:10 +02:00 committed by Alexander Medvednikov
parent 0ca58aba5e
commit 9d4b4df54f
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ pub fn hostname() ?string {
// The host name is returned as a null-terminated string. // The host name is returned as a null-terminated string.
res := C.gethostname(&name, 256) res := C.gethostname(&name, 256)
if res != 0 { 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) return tos_clone(name)
} }