Skip to content

Commit 5517c74

Browse files
authored
doc(inline): improve log.then description
1 parent 4d2ef01 commit 5517c74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/reference/metaprogramming/inline.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ def factorial(n: BigInt): BigInt = {
8989
}
9090
```
9191

92-
Note, that the by-value parameter is evaluated only once, per the usual Scala
92+
Note, that the by-value parameter `msg` is evaluated only once, per the usual Scala
9393
semantics, by binding the value and reusing the `msg` through the body of
94-
`factorial`. Also, note the special handling of setting to the private var
95-
`indent` by generating the setter method `def inline$indent_=`.
94+
`factorial`. Also, note the special handling of the assignment to the private var
95+
`indent`. It is achieved by generating a setter method `def inline$indent_=` and calling it instead.
9696

9797
### Recursive Inline Methods
9898

0 commit comments

Comments
 (0)