Skip to content

Commit 1ab6c85

Browse files
authored
Merge pull request #7 from AxelEdlund/patch-1
Update git.tex
2 parents f7f224d + 95b0045 commit 1ab6c85

File tree

1 file changed

+2
-5
lines changed
  • lab-instructions/modules/git

1 file changed

+2
-5
lines changed

lab-instructions/modules/git/git.tex

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,8 @@ \subsection*{Datorarbete}
126126
\item Vi ska nu börja utvecklingen av vårt scalaprogram. Skapa en fil i katalogen, kalla den t.ex. \code{HelloWorld.scala}, med följande innehåll:
127127

128128
\begin{lstlisting}[language=scala]
129-
object HelloWorld {
130-
def main(args: Array[String]): Unit = {
131-
println("Hello, world!")
132-
}
133-
}
129+
@main def main=
130+
println("Hello world!")
134131
\end{lstlisting}
135132

136133
Prova att kompilera och testköra programmet för att verifiera att det fungerar (\emph{OBS! Nedan instruktioner kan vara fel, gör så som du lärt dig i prog-delen av kursen!}):

0 commit comments

Comments
 (0)