Skip to content

Commit 10b3783

Browse files
committed
simplify example
1 parent c5581af commit 10b3783

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ To get the name of a function:
4444
import com.github.dwickern.macros.NameOf._
4545

4646
def startCalculation(value: Int): Unit = {
47-
println(s"Entered ${nameOf(startCalculation _)}")
47+
println("Entered " + nameOf(startCalculation _))
4848
}
4949
```
5050
``` mdoc:nest
5151
// compiles to:
5252
5353
def startCalculation(value: Int): Unit = {
54-
println(s"Entered startCalculation")
54+
println("Entered startCalculation")
5555
}
5656
```
5757

0 commit comments

Comments
 (0)