aboutsummaryrefslogtreecommitdiff
path: root/help/assert_assertwithmessage.md
diff options
context:
space:
mode:
Diffstat (limited to 'help/assert_assertwithmessage.md')
-rw-r--r--help/assert_assertwithmessage.md17
1 files changed, 7 insertions, 10 deletions
diff --git a/help/assert_assertwithmessage.md b/help/assert_assertwithmessage.md
index ad11a8d3..e8081bae 100644
--- a/help/assert_assertwithmessage.md
+++ b/help/assert_assertwithmessage.md
@@ -1,11 +1,11 @@
*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/assert_assertwithmessage.html).*
# Exclamation Mark (`!`)
-
+
## `! 𝕩`: Assert
-
+
Throw an error if `𝕩` is not 1.
-
+
! 1
! 2
@@ -13,17 +13,14 @@ Throw an error if `𝕩` is not 1.
! "hello"
-
-
+
+
## `𝕨 ! 𝕩`: Assert With Message
-
+
Throw an error with message `𝕨` if `𝕩` is not 1.
-
+
"hi" ! 1
"two" ! 2
"hello error" ! "hello"
-
-
-