Skip to content

Commit 772e365

Browse files
authored
[doc] wording, parameter inline modifier
Maybe this is only of a personal taste. When I first read "can be marked `inline`" then I thought about an annotation. Since there is `@inline` it could be overlooked. Thus I suggest we rephrase it to "can have an `inline` modifier".
1 parent 4695546 commit 772e365

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/metaprogramming/inline.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def factorial(n: BigInt): BigInt = {
5858
}
5959
```
6060

61-
If `Config.logging == false`, this will be rewritten (simplified) to
61+
If `Config.logging == false`, this will be rewritten (simplified) to:
6262

6363
```scala
6464
def factorial(n: BigInt): BigInt = {
@@ -120,7 +120,7 @@ inline def power(x: Double, n: Int): Double = {
120120
}
121121
```
122122

123-
Parameters of inline methods can be marked `inline`. This means
123+
Parameters of inline methods can have an `inline` modifier as well. This means
124124
that actual arguments to these parameters must be constant expressions.
125125
For example:
126126

0 commit comments

Comments
 (0)