Skip to content

Commit 98d9b17

Browse files
committed
Clarify let-argument example
1 parent 836f050 commit 98d9b17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

www/midterms/2.scrbl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,12 @@ This program should yield an error - we're still using static scoping!
220220
@#reader scribble/comment-reader
221221
(racketblock
222222
(begin
223-
(define (f x) (let ((x 42)) 42))
223+
(define (f x) (let ((x 42)) x))
224224
(f 17))
225225
)
226226

227227
This example should yield 42, the let in the body of f shadows the
228-
argument.
228+
argument.
229229

230230
@#reader scribble/comment-reader
231231
(racketblock

0 commit comments

Comments
 (0)