From 9d4b4df54fa7a46fbf85cad62b15181e85927ee7 Mon Sep 17 00:00:00 2001 From: unknown-v <52547845+unknown-v@users.noreply.github.com> Date: Wed, 17 Jul 2019 15:51:10 +0200 Subject: [PATCH] net : fix error msg from os.hostname() cannot get the host name to net.hostname() cannot get the host name --- vlib/net/net.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/net/net.v b/vlib/net/net.v index 387a1c21ff..b6a157b96c 100644 --- a/vlib/net/net.v +++ b/vlib/net/net.v @@ -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) }