Merge pull request #260 from ZystemOS/feature/zig-update
Update to zig master
This commit is contained in:
commit
6d65e6f0b3
1 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ fn parseChar(ptr: [*]const u8, end: *const u8) PanicError!u8 {
|
|||
///
|
||||
fn parseWhitespace(ptr: [*]const u8, end: *const u8) PanicError![*]const u8 {
|
||||
var i: u32 = 0;
|
||||
while (std.fmt.isWhiteSpace(try parseChar(ptr + i, end))) : (i += 1) {}
|
||||
while (std.ascii.isSpace(try parseChar(ptr + i, end))) : (i += 1) {}
|
||||
return ptr + i;
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,7 @@ fn parseWhitespace(ptr: [*]const u8, end: *const u8) PanicError![*]const u8 {
|
|||
///
|
||||
fn parseNonWhitespace(ptr: [*]const u8, end: *const u8) PanicError![*]const u8 {
|
||||
var i: u32 = 0;
|
||||
while (!std.fmt.isWhiteSpace(try parseChar(ptr + i, end))) : (i += 1) {}
|
||||
while (!std.ascii.isSpace(try parseChar(ptr + i, end))) : (i += 1) {}
|
||||
return ptr + i;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue