File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ In this page, we will cover basics of Scala.
14
14
15
15
## Trying Scala in the Browser
16
16
17
- You can run Scala in your browser with [ ScalaFiddle] ( https://scalafiddle.io ) .
17
+ You can run Scala in your browser with ScalaFiddle.
18
18
19
- 1 . Go to https://scalafiddle.io .
19
+ 1 . Go to [ https://scalafiddle.io ] ( https://scalafiddle.io ) .
20
20
2 . Paste ` println("Hello, world!") ` in the left pane.
21
21
3 . Hit "Run" button. Output appears in the right pane.
22
22
@@ -41,7 +41,7 @@ You can name results of expressions with the `val` keyword.
41
41
42
42
``` tut
43
43
val x = 1 + 1
44
- println(x * x ) // 4
44
+ println(x) // 2
45
45
```
46
46
47
47
Named results, such as ` x ` here, are called values. Referencing
@@ -91,7 +91,7 @@ println({
91
91
92
92
## Functions
93
93
94
- Functions are expressions that take parameters and compute a result .
94
+ Functions are expressions that take parameters.
95
95
96
96
You can define a function that returns a given integer plus one:
97
97
You can’t perform that action at this time.
0 commit comments