Skip to content

Commit

Permalink
Merge pull request #668 from snctfd/master
Browse files Browse the repository at this point in the history
fix #667 'w04 exercise 7c: incorrect solution in answer key'
  • Loading branch information
bjornregnell authored Sep 22, 2022
2 parents b04c4d5 + 5265c1b commit 2c18f2f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions compendium/modules/w04-objects-exercise.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}.

Expand Down

0 comments on commit 2c18f2f

Please sign in to comment.