typo (PR 9908)
svn: r12438
This commit is contained in:
parent
13b4240cc0
commit
dcab9448e8
|
@ -280,9 +280,9 @@ work when given non-strings:
|
||||||
@schemeblock[
|
@schemeblock[
|
||||||
(define (reply s)
|
(define (reply s)
|
||||||
(if (string? s)
|
(if (string? s)
|
||||||
(if (equal? "hello" (substring s 0 5)
|
(if (equal? "hello" (substring s 0 5))
|
||||||
"hi!"
|
"hi!"
|
||||||
"huh?"))
|
"huh?")
|
||||||
"huh?"))
|
"huh?"))
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -292,8 +292,8 @@ better written as
|
||||||
@schemeblock[
|
@schemeblock[
|
||||||
(define (reply s)
|
(define (reply s)
|
||||||
(if (if (string? s)
|
(if (if (string? s)
|
||||||
(equal? "hello" (substring s 0 5)
|
(equal? "hello" (substring s 0 5))
|
||||||
#f))
|
#f)
|
||||||
"hi!"
|
"hi!"
|
||||||
"huh?"))
|
"huh?"))
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user