mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
fix expectStringEndsWith error output.
before it started outputting the actual starting, not ending characters.
This commit is contained in:
parent
24cca2a55e
commit
efab3b1e6d
@ -406,7 +406,7 @@ pub fn expectStringEndsWith(actual: []const u8, expected_ends_with: []const u8)
|
||||
return;
|
||||
|
||||
const shortened_actual = if (actual.len >= expected_ends_with.len)
|
||||
actual[0..expected_ends_with.len]
|
||||
actual[(actual.len - expected_ends_with.len)..]
|
||||
else
|
||||
actual;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user