You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/01_introduction/02_Functions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ fun main() {
34
34
2. A function that takes a second [optional parameter with default value](https://kotlinlang.org/docs/reference/functions.html#default-arguments)`Info`. The return type is omitted, meaning that it's actually `Unit`.
35
35
3. A function that returns an integer.
36
36
4. A single-expression function that returns an integer (inferred).
37
-
5. Calls the first function with the agrument`Hello`.
37
+
5. Calls the first function with the argument`Hello`.
38
38
6. Calls the function with two parameters, passing values for both of them.
39
39
7. Calls the same function omitting the second one. The default value `Info` is used.
40
40
8. Calls the same function using [named arguments](https://kotlinlang.org/docs/reference/functions.html#named-arguments) and changing the order of the arguments.
0 commit comments