From c9135367bcc07851ccb7d7ccf1f4b330b5f32f89 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Mon, 1 May 2017 15:21:14 -0600 Subject: [PATCH] corrections from @jltaylor-us original commit: a499d394300750ad18278469e2196ca021d9e4aa --- csug/smgmt.stex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csug/smgmt.stex b/csug/smgmt.stex index e7955f9562..07d5809a89 100644 --- a/csug/smgmt.stex +++ b/csug/smgmt.stex @@ -485,7 +485,7 @@ syntax for ephemeron pairs. \endschemedisplay \noindent -As for weak pairs, the last two expressions of the middle example +As with weak pairs, the last two expressions of the middle example above may in fact return \scheme{(a . b)} if a garbage collection promoting the pair into an older generation occurs prior to the assignment of \scheme{x} to \scheme{*}. In the last example above, @@ -504,7 +504,7 @@ reference, and that non-weak reference prevents the car field from becoming \schemedisplay (ephemeron-pair? (ephemeron-cons 'a 'b)) ;=> #t (ephemeron-pair? (cons 'a 'b)) ;=> #f -(ephemeron-pair? (weaj-cons 'a 'b)) ;=> #f +(ephemeron-pair? (weak-cons 'a 'b)) ;=> #f (ephemeron-pair? "oops") ;=> #f \endschemedisplay