Change which values are shown after the copying example
This fixes a possible typing error, as it doesn't make much sense to show the same value twice. Show the elements of both structs instead.
This commit is contained in:
parent
a51231ffa2
commit
3b4cff1bfd
|
@ -100,7 +100,7 @@ the value of the corresponding @racket[_expr].
|
|||
(define p1 (posn 1 2))
|
||||
(define p2 (struct-copy posn p1 [x 3]))
|
||||
(list (posn-x p2) (posn-y p2))
|
||||
(list (posn-x p1) (posn-x p2))
|
||||
(list (posn-x p1) (posn-y p1))
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user