Skip to content

Commit 168bf07

Browse files
authored
use parameter
1 parent 7d39698 commit 168bf07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.rkt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
(module+ main
44
(require racket/cmdline)
55

6-
(define who (box "world"))
6+
(define who (parameter "world"))
77
(command-line
88
#:program "racket-project"
99
#:once-each
10-
[("-n" "--name") name "Who to say hello to" (set-box! who name)]
10+
[("-n" "--name") name "Who to say hello to" (who name)]
1111
#:args ()
12-
(printf "hello ~a~n" (unbox who))))
12+
(printf "hello ~a~n" (who))))
1313

1414
(module+ test
1515
(require rackunit)

0 commit comments

Comments
 (0)