[racket/en] Fix Incorrect Names in Mutable Struct Examples (per Issue #2714) (#2715)

* Fix wrong mutable struct namee

* Re-added space after ;
This commit is contained in:
Steve Chae 2017-04-27 12:21:10 -04:00 committed by ven
parent dba32328ee
commit 51e14b0e34

View File

@ -147,8 +147,8 @@ my-pet ; => #<dog>
(struct rgba-color (red green blue alpha) #:mutable)
(define burgundy
(rgba-color 144 0 32 1.0))
(set-color-green! burgundy 10)
(color-green burgundy) ; => 10
(set-rgba-color-green! burgundy 10)
(rgba-color-green burgundy) ; => 10
;;; Pairs (immutable)
;; `cons' constructs pairs, `car' and `cdr' extract the first