1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

net : fix error msg

from 
os.hostname() cannot get the host name
to
net.hostname() cannot get the host name
This commit is contained in:
unknown-v 2019-07-17 15:51:10 +02:00 committed by Alexander Medvednikov
parent 0ca58aba5e
commit 9d4b4df54f

View File

@ -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)
}