1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-01 04:20:39 +02:00

Merge pull request #2822 from k4rtik/master

[standard-ml/en] Use the correct identifier name
This commit is contained in:
Adam Bard
2017-08-18 10:18:21 -07:00
committed by GitHub

View File

@@ -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 *)