Skip to content

Commit 2d728bc

Browse files
Geek-Joesarahhaggarty
authored andcommitted
Update kotlin-tour-intermediate-extension-functions.md
parameters for function definition, arguments for function calling
1 parent e7446e7 commit 2d728bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/topics/tour/kotlin-tour-intermediate-extension-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In this example, the `main()` function calls the [`.first()`](https://kotlinlang
3838
The `.first()` function is called **on** the `readOnlyShapes` variable, so the `readOnlyShapes` variable is the receiver.
3939

4040
To create an extension function, write the name of the class that you want to extend followed by a `.` and the name of
41-
your function. Continue with the rest of the function declaration, including its arguments and return type.
41+
your function. Continue with the rest of the function declaration, including its parameters and return type.
4242

4343
For example:
4444

@@ -186,4 +186,4 @@ fun main() {
186186

187187
## Next step
188188

189-
[Intermediate: Scope functions](kotlin-tour-intermediate-scope-functions.md)
189+
[Intermediate: Scope functions](kotlin-tour-intermediate-scope-functions.md)

0 commit comments

Comments
 (0)