From 5265c1bc2ea22cd87b48b5439775979e748d3ae2 Mon Sep 17 00:00:00 2001 From: Rasmus Beck Date: Wed, 21 Sep 2022 19:06:07 +0200 Subject: [PATCH] fix #667 'w04 exercise 7c: incorrect solution in answer key' --- compendium/modules/w04-objects-exercise.tex | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/compendium/modules/w04-objects-exercise.tex b/compendium/modules/w04-objects-exercise.tex index 425a939be..af0ae3b18 100644 --- a/compendium/modules/w04-objects-exercise.tex +++ b/compendium/modules/w04-objects-exercise.tex @@ -489,11 +489,10 @@ \begin{REPL} > scala -cp introprog_3-1.2.0.jar -repl scala> val w = new introprog.PixelWindow(400,300,"HEJ") -scala> w.moveTo(100, 100) -scala> w.lineTo(200, 100) -scala> w.lineTo(200, 200) -scala> w.lineTo(100, 200) -scala> w.lineTo(100, 100) +scala> w.line(100, 100, 200, 100) +scala> w.line(200, 100, 200, 200) +scala> w.line(200, 200, 100, 200) +scala> w.line(100, 200, 100, 100) \end{REPL} Från Scala 3.1.0 så behövs inte optionen \texttt{-repl}.