More comment fixes.

This commit is contained in:
Eli Barzilay 2013-07-16 01:29:37 -04:00
parent 6b282360b0
commit e8f8e2331b

View File

@ -22,7 +22,7 @@ Feedback is appreciated! You can reach me at [@th3rac25](http://twitter.com/th3r
#| Block comments #| Block comments
can span multiple lines and... can span multiple lines and...
#| #|
they can be nested ! they can be nested!
|# |#
|# |#
@ -370,7 +370,7 @@ vec ; => #(1 2 3 4)
(show " | ~a | " n #\space) (show " | ~a | " n #\space)
(show "---~a---" n #\-)) (show "---~a---" n #\-))
(define (show fmt n ch) ;; internal function (define (show fmt n ch) ; internal function
(printf fmt (make-string n ch)) (printf fmt (make-string n ch))
(newline))) (newline)))
@ -388,9 +388,9 @@ vec ; => #(1 2 3 4)
(class object% (class object%
(init size) ; initialization argument (init size) ; initialization argument
(super-new) ; superclass initialization (super-new) ; superclass initialization
; Field ;; Field
(define current-size size) (define current-size size)
; Public methods ;; Public methods
(define/public (get-size) current-size) (define/public (get-size) current-size)
(define/public (grow amt) (set! current-size (+ amt current-size))) (define/public (grow amt) (set! current-size (+ amt current-size)))
(define/public (eat other-fish) (grow (send other-fish get-size))))) (define/public (eat other-fish) (grow (send other-fish get-size)))))