diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-12-22 00:50:30 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-12-22 00:50:30 -0500 |
| commit | d917815d8111b98dc237cbe2c723fa63018e02b1 (patch) | |
| tree | ce12771a86b2412ee9692ca73d3ca49abe5da3ce /std/cstr.zig | |
| parent | 8bc523219c66427951e5339550502871547f2138 (diff) | |
| download | zig-d917815d8111b98dc237cbe2c723fa63018e02b1.tar.gz zig-d917815d8111b98dc237cbe2c723fa63018e02b1.zip | |
explicitly return from blocks
instead of last statement being expression value
closes #629
Diffstat (limited to 'std/cstr.zig')
| -rw-r--r-- | std/cstr.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/cstr.zig b/std/cstr.zig index e29f90fc01..445f7ab892 100644 --- a/std/cstr.zig +++ b/std/cstr.zig @@ -17,7 +17,7 @@ pub fn cmp(a: &const u8, b: &const u8) -> i8 { return -1; } else { return 0; - }; + } } pub fn toSliceConst(str: &const u8) -> []const u8 { |
