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:
Andreas Düring 2019-06-01 15:54:36 +02:00 committed by Ben Greenman
parent a51231ffa2
commit 3b4cff1bfd

View File

@ -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))
]