diff options
Diffstat (limited to 'std/string.zc')
| -rw-r--r-- | std/string.zc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/std/string.zc b/std/string.zc index e45d399..4e0ba03 100644 --- a/std/string.zc +++ b/std/string.zc @@ -58,8 +58,7 @@ impl String { fn substring(self, start: usize, len: usize) -> String { if (start + len > self.length()) { - fprintf(stderr, "%s:%d (%s): Panic: substring out of bounds\n", __FILE__, __LINE__, __func__); - exit(1); + panic("substring out of bounds"); } var v = Vec<char>::new(); // Manual copy |
