From e6a82e88a839c7b99ad70dbd4a5d3ccc6a177457 Mon Sep 17 00:00:00 2001 From: Jim Pryor Date: Wed, 1 Dec 2010 04:03:54 -0500 Subject: [PATCH 1/1] week11 tweaks Signed-off-by: Jim Pryor --- coroutines_and_aborts.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coroutines_and_aborts.mdwn b/coroutines_and_aborts.mdwn index cd71be45..ff75eff7 100644 --- a/coroutines_and_aborts.mdwn +++ b/coroutines_and_aborts.mdwn @@ -47,7 +47,7 @@ and then having to remember which element in the triple was which: records let you attach descriptive labels to the components of the tuple: # type blah_record = { height : int; weight : int; char_tester : char -> bool };; - # let b2 = { height = 1; weight = 2; char_tester = fun c -> c = 'M' };; + # let b2 = { height = 1; weight = 2; char_tester = (fun c -> c = 'M') };; val b2 : blah_record = {height = 1; weight = 2; char_tester = } # let b3 = { height = 1; char_tester = (fun c -> c = 'K'); weight = 3 };; (* also works *) val b3 : blah_record = {height = 1; weight = 3; char_tester = } -- 2.11.0