Skip to content

Commit a9d5168

Browse files
authored
Update inline.md
Added missing val and removed type ascription as other examples don't have it.
1 parent ee23094 commit a9d5168

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_overviews/scala3-macros/tutorial/inline.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ Let us assume a call to `logged` on a concrete instance of `PrintLogger`:
404404
```scala
405405
logged(new PrintLogger, "🥧")
406406
// inlined as
407-
val logger: PrintLogger = new PrintLogger
407+
val logger = new PrintLogger
408+
val x = "🥧"
408409
logger.log(x)
409410
```
410411
After inlining, the call to `log` is de-virtualized and known to be on `PrintLogger`.

0 commit comments

Comments
 (0)