replace %defer with errdefer

See #632

now we have 1 less sigil
This commit is contained in:
Andrew Kelley
2018-01-23 23:08:09 -05:00
parent ad2527d47a
commit b3a6faf13e
21 changed files with 87 additions and 89 deletions

View File

@@ -440,7 +440,7 @@ pub fn join(allocator: &Allocator, sep: u8, strings: ...) -> %[]u8 {
}
const buf = try allocator.alloc(u8, total_strings_len);
%defer allocator.free(buf);
errdefer allocator.free(buf);
var buf_index: usize = 0;
comptime var string_i = 0;