Skip to content

Commit cf69806

Browse files
authored
os: fix documentation for environ function (#24796)
1 parent a5ece52 commit cf69806

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎vlib/os/environment.c.v‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,13 @@ pub fn unsetenv(name string) int {
8181
}
8282
}
8383

84-
// See: https://linux.die.net/man/5/environ for unix platforms.
85-
// See: https://docs.microsoft.com/bg-bg/windows/win32/api/processenv/nf-processenv-getenvironmentstrings
8684
// environ returns a map of all the current environment variables.
87-
88-
// TODO how to declare Virtual C globals?
89-
// const C.environ &&char
90-
85+
// See: https://linux.die.net/man/5/environ for Unix platforms.
86+
// See: https://docs.microsoft.com/bg-bg/windows/win32/api/processenv/nf-processenv-getenvironmentstrings
87+
// for Windows OS.
9188
pub fn environ() map[string]string {
89+
// TODO how to declare Virtual C globals?
90+
// const C.environ &&char
9291
mut res := map[string]string{}
9392
$if windows {
9493
mut estrings := C.GetEnvironmentStringsW()

0 commit comments

Comments
 (0)