mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-26 20:34:32 +03:00
Merge pull request #2822 from k4rtik/master
[standard-ml/en] Use the correct identifier name
This commit is contained in:
commit
0d510c5528
@ -385,7 +385,7 @@ fun calculate_interest(n) = if n < 0.0
|
||||
|
||||
(* Exceptions can be caught using "handle" *)
|
||||
val balance = calculate_interest ~180.0
|
||||
handle Domain => ~180.0 (* x now has the value ~180.0 *)
|
||||
handle Domain => ~180.0 (* balance now has the value ~180.0 *)
|
||||
|
||||
(* Some exceptions carry extra information with them *)
|
||||
(* Here are some examples of built-in exceptions *)
|
||||
|
Loading…
Reference in New Issue
Block a user