Skip to content

Commit

Permalink
Std: panic prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjermakov committed Apr 20, 2024
1 parent 42d9858 commit 23974bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/std/panic.no
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pub fn panic(message: String): Never {
throwError(message)
throwError("panic: {message}")
}

pub fn todo(message: String): Never {
panic("TODO: {message}")
panic("todo: {message}")
}

pub fn throwError(message: String): Never

0 comments on commit 23974bc

Please sign in to comment.