mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Use the correct identifier name
This commit is contained in:
parent
6e7c5c7933
commit
6b2d12747b
@ -385,7 +385,7 @@ fun calculate_interest(n) = if n < 0.0
|
|||||||
|
|
||||||
(* Exceptions can be caught using "handle" *)
|
(* Exceptions can be caught using "handle" *)
|
||||||
val balance = calculate_interest ~180.0
|
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 *)
|
(* Some exceptions carry extra information with them *)
|
||||||
(* Here are some examples of built-in exceptions *)
|
(* Here are some examples of built-in exceptions *)
|
||||||
|
Loading…
Reference in New Issue
Block a user