mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
[standard-ml/en-en] align things a little
This commit is contained in:
parent
a03869362b
commit
acc2dda568
@ -316,7 +316,7 @@ val x = raiseException "hello" handle Fail msg => msg
|
||||
(* We can pattern match in "handle" to make sure
|
||||
a specfic exception was raised, or grab the message *)
|
||||
val y = raiseException "..." handle Fail _ => "Fail was raised"
|
||||
| Domain => "Domain was raised"
|
||||
| Domain => "Domain was raised"
|
||||
(* y now has the value "Fail was raised" *)
|
||||
|
||||
(* We can define our own exceptions like this *)
|
||||
|
Loading…
Reference in New Issue
Block a user