Skip to content

Commit c80644c

Browse files
Update inline.md
1 parent dd47092 commit c80644c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/docs/reference/metaprogramming/inline.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ parameters:
132132
```scala
133133
inline def sumTwice(a: Int, b: =>Int, inline c: Int) = a + a + b + b + c + c
134134

135-
sumTwice(x(), y(), z())
135+
sumTwice(f(), g(), h())
136136
// translates to
137137
//
138-
// val a = x()
139-
// def b = y()
140-
// a + a + b + b + z() + z()
138+
// val a = f()
139+
// def b = g()
140+
// a + a + b + b + h() + h()
141141
```
142142

143143
### Relationship to @inline

0 commit comments

Comments
 (0)