Fix formatting of system-level code in Ona module

This commit is contained in:
kayomn 2022-11-01 22:22:29 +00:00
parent 595ad83cdd
commit dd81ae76ec
1 changed files with 2 additions and 0 deletions

View File

@ -378,12 +378,14 @@ pub const Path = extern struct {
while (components.next()) |component| if (component.len != 0) {
for (component) |byte| {
if (path.length == max) return error.TooLong;
path.buffer[path.length] = byte;
path.length += 1;
}
if (components.hasNext()) {
if (path.length == max) return error.TooLong;
path.buffer[path.length] = '/';
path.length += 1;
}