summaryrefslogtreecommitdiffhomepage
path: root/racket.html.markdown
diff options
context:
space:
mode:
authorSteve Chae <steve.chae@rangle.io>2017-04-27 12:21:10 -0400
committerven <vendethiel@hotmail.fr>2017-04-27 18:21:10 +0200
commit51e14b0e341d5df2fb1bf9174e2c9b7016a4c07c (patch)
tree0b7f7868c44769b9f47887aeafe6c4b84c10824e /racket.html.markdown
parentdba32328eef367461b37d71deb5ab9b83d4fc78b (diff)
[racket/en] Fix Incorrect Names in Mutable Struct Examples (per Issue #2714) (#2715)
* Fix wrong mutable struct namee * Re-added space after ;
Diffstat (limited to 'racket.html.markdown')
-rw-r--r--racket.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/racket.html.markdown b/racket.html.markdown
index 38335bc1..c6b1deba 100644
--- a/racket.html.markdown
+++ b/racket.html.markdown
@@ -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