Skip to content

Commit a6b42f2

Browse files
committed
minor changes to git lecture
1 parent dfa245a commit a6b42f2

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"editor.formatOnSave": true,
2+
"editor.formatOnSave": false,
33
"latex-workshop.latex.recipe.default": "latexmk (xelatex)",
44
"latex-workshop.latex.search.rootFiles.exclude": [
55
"**/latex.tex"
66
],
77
"latex-workshop.latex.rootFile.useSubFile": false,
8-
"editor.defaultFormatter": "James-Yu.latex-workshop",
8+
"editor.defaultFormatter": null,
99
"latex-workshop.formatting.latex": "latexindent"
1010
}

lectures/git/git.tex

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
\begin{block}{\small Kod före merge}
247247
\begin{GobbleCode}[0pt]{10}
248248
def greet(): String = {
249-
"Hello, world!"
249+
"Hello, world!"
250250
}
251251
\end{GobbleCode}
252252
\end{block}
@@ -255,9 +255,9 @@
255255
\begin{GobbleCode}[0pt]{10}
256256
def greet(): String = {
257257
<<<<<<< HEAD
258-
"Hello, world!"
258+
"Hello, world!"
259259
=======
260-
"Hi, everyone!"
260+
"Hi, everyone!"
261261
>>>>>>> branch
262262
}
263263
\end{GobbleCode}
@@ -276,23 +276,23 @@
276276

277277
\begin{GobbleCode}[2pt]{6}
278278
object Main {
279-
def main(args: Array[String]): Unit = {
280-
println("Starting calculation...")
281-
println("Result: " + calculateSum(5, 10))
282-
}
279+
def main(args: Array[String]): Unit = {
280+
println("Starting calculation...")
281+
println("Result: " + calculateSum(5, 10))
282+
}
283283

284-
def calculateSum(a: Int, b: Int): Int = {
284+
def calculateSum(a: Int, b: Int): Int = {
285285
<<<<<<< HEAD
286-
val sum = a + b
287-
println("Sum calculated: " + sum)
288-
sum
286+
val sum = a + b
287+
println("Sum calculated: " + sum)
288+
sum
289289
=======
290-
val sum = a + b
291-
println("Calculating sum for: " + a + " and " + b)
292-
println("Sum is: " + sum)
293-
sum * 2 // Doubles the result
290+
val sum = a + b
291+
println("Calculating sum for: " + a + " and " + b)
292+
println("Sum is: " + sum)
293+
sum * 2 // Doubles the result
294294
>>>>>>> branch
295-
}
295+
}
296296
}
297297
\end{GobbleCode}
298298

@@ -527,7 +527,7 @@
527527
\ii{Länkar till materialet finns på kurshemsidan:
528528

529529
\halfblankline
530-
\url{https://cs.lth.se/dod/datorlaborationer/}}
530+
\url{https://lunduniversity.github.io/pgk}}
531531
\end{itemize}
532532

533533
\end{frame}

0 commit comments

Comments
 (0)