Commit fb1bd78908

Ryan Liptak <squeek502@hotmail.com>
2025-11-16 13:07:48
process.getenvW: Document that returned memory points to the PEB
1 parent adf74ba
Changed files (1)
lib
lib/std/process.zig
@@ -529,6 +529,7 @@ pub fn hasNonEmptyEnvVar(allocator: Allocator, key: []const u8) HasEnvVarError!b
 }
 
 /// Windows-only. Get an environment variable with a null-terminated, WTF-16 encoded name.
+/// The returned slice points to memory in the PEB.
 ///
 /// This function performs a Unicode-aware case-insensitive lookup using RtlEqualUnicodeString.
 ///