authorgravatar for wink@saville.comWink Saville <wink@saville.com> 2018-09-23 10:08:45-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-09-23 13:12:57-04:00
loga170a64776e703a8549e5ef16cc6009b642b617e
treeab1b4e053f65f5ba258dfead0be3273f9079bfde
parentaf01c6e2bf6a3cbf302deb9166ea3bca50d65175

Fix typo in argsAlloc comment

Changed freeArgs to argsFree.

1 files changed, 1 insertions(+), 1 deletions(-)

std/os/index.zig+1-1
...@@ -2022,7 +2022,7 @@ pub fn args() ArgIterator {...@@ -2022,7 +2022,7 @@ pub fn args() ArgIterator {
2022 return ArgIterator.init();2022 return ArgIterator.init();
2023}2023}
20242024
2025/// Caller must call freeArgs on result.2025/// Caller must call argsFree on result.
2026pub fn argsAlloc(allocator: *mem.Allocator) ![]const []u8 {2026pub fn argsAlloc(allocator: *mem.Allocator) ![]const []u8 {
2027 // TODO refactor to only make 1 allocation.2027 // TODO refactor to only make 1 allocation.
2028 var it = args();2028 var it = args();