Replace celcius (a common mispelling) with celsius

This commit is contained in:
Andrew Gwozdziewycz 2015-07-22 17:29:27 -07:00 committed by Vincent St-Amour
parent 1d380864e9
commit ef716ed15d

View File

@ -136,12 +136,12 @@ multiple times, attaches a property value to the structure type; see
@examples[#:eval posn-eval @examples[#:eval posn-eval
(struct point (x y) #:inspector #f) (struct point (x y) #:inspector #f)
(point 3 5) (point 3 5)
(struct celcius (temp) (struct celsius (temp)
#:guard (λ (temp name) #:guard (λ (temp name)
(unless (and (real? temp) (>= temp -273.15)) (unless (and (real? temp) (>= temp -273.15))
(error "not a valid temperature")) (error "not a valid temperature"))
temp)) temp))
(celcius -275) (celsius -275)
] ]
@margin-note{Use the @racket[prop:procedure] property to implement an @margin-note{Use the @racket[prop:procedure] property to implement an