File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def toMap(person: Person) = Map(
3232 nameOf(person.age) -> person.age
3333)
3434```
35- ``` mdoc:nest
35+ ``` scala mdoc:nest
3636// compiles to:
3737
3838def toMap (person : Person ) = Map (
@@ -47,7 +47,7 @@ def startCalculation(value: Int): Unit = {
4747 println(" Entered " + nameOf(startCalculation _))
4848}
4949```
50- ``` mdoc:nest
50+ ``` scala mdoc:nest
5151// compiles to:
5252
5353def startCalculation (value : Int ): Unit = {
@@ -64,7 +64,7 @@ case class Person(name: String, age: Int) {
6464println(nameOf[Person ](_.age))
6565println(nameOf[Person ](_.sayHello(??? )))
6666```
67- ``` mdoc:nest
67+ ``` scala mdoc:nest
6868// compiles to:
6969
7070println(" age" )
@@ -75,7 +75,7 @@ You can also use `nameOfType` to get the unqualified name of a type:
7575``` scala mdoc:nest
7676println(nameOfType[java.lang.String ])
7777```
78- ``` mdoc:nest
78+ ``` scala mdoc:nest
7979// compiles to:
8080
8181println(" String" )
@@ -85,7 +85,7 @@ And `qualifiedNameOfType` to get the qualified name:
8585``` scala mdoc:nest
8686println(qualifiedNameOfType[java.lang.String ])
8787```
88- ``` mdoc:nest
88+ ``` scala mdoc:nest
8989// compiles to:
9090
9191println(" java.lang.String" )
You can’t perform that action at this time.
0 commit comments