Skip to content

Commit 01d3aa4

Browse files
p7novAlexanderPrendota
authored andcommitted
docs: fixed links in 02_run.md and 05_also.md (Kotlin#71)
1 parent 9e4d8b7 commit 01d3aa4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/06_scope_functions/02_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# run
22

3-
Like [`let`](01_let.md), `run` is another scoping function from the standard library. Basically, it does the same: executes a code block and returns its result.
3+
Like [`let`](01_let), `run` is another scoping function from the standard library. Basically, it does the same: executes a code block and returns its result.
44
The difference is that inside `run` the object is accessed by `this`. This is useful when you want to call the object's methods rather than pass it as an argument.<div class="language-kotlin" theme="idea" data-min-compiler-version="1.3">
55

66
<div class="language-kotlin" theme="idea" data-min-compiler-version="1.3">

examples/06_scope_functions/05_also.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# also
22

3-
`also` works like [`apply`](04_apply.md): it executes a given block and returns the object called.
3+
`also` works like [`apply`](04_apply): it executes a given block and returns the object called.
44
Inside the block, the object is referenced by `it`, so it's easier to pass it as an argument.
55
This function is handy for embedding additional actions, such as logging in call chains.
66

0 commit comments

Comments
 (0)