We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5936185 commit 65c2e33Copy full SHA for 65c2e33
docs/docs/reference/metaprogramming/inline.md
@@ -108,16 +108,16 @@ inline def power(x: Double, n: Int): Double = {
108
val y = power(x, n / 2)
109
if (n % 2 == 0) y * y else y * y * x
110
}
111
-
112
- power(expr, 10)
113
- // translates to
114
- //
115
- // val x = expr
116
- // val y1 = x * x // ^2
117
- // val y2 = y1 * y1 // ^4
118
- // val y3 = y2 * x // ^5
119
- // y3 * y3 // ^10
120
+
+power(expr, 10)
+// translates to
+//
+// val x = expr
+// val y1 = x * x // ^2
+// val y2 = y1 * y1 // ^4
+// val y3 = y2 * x // ^5
+// y3 * y3 // ^10
121
```
122
123
Parameters of inline methods can have an `inline` modifier as well. This means
0 commit comments