Skip to content

Commit 4fcddc1

Browse files
authored
Merge pull request #48 from darrenmc/patch-1
Fix markup for Nil and AnyRef
2 parents cd101d7 + 6d653dd commit 4fcddc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/stdlib/EmptyValues.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ object EmptyValues extends FlatSpec with Matchers with org.scalaexercises.defini
2727
*
2828
* [[http://www.scala-lang.org/api/current/index.html#scala.collection.immutable.Nil$ Nil]] is just an empty list, exactly like the result of `List()`. It is of type `List[Nothing]`. And since we know there are no instances of Nothing, we now have a list that is statically verifiable as empty. Nice to have.
2929
*
30-
* An empty list can be represented by another nothing value: *Nil*
30+
* An empty list can be represented by another nothing value: `Nil`
3131
*/
3232
def emptyValuesEmptyValues(res0: Boolean) {
3333
List() === Nil shouldBe res0
@@ -65,7 +65,7 @@ object EmptyValues extends FlatSpec with Matchers with org.scalaexercises.defini
6565
assert(None.isEmpty === res0)
6666
}
6767

68-
/** `None` can be cast `Any`, *AnyRef* or `AnyVal`
68+
/** `None` can be cast `Any`, `AnyRef` or `AnyVal`
6969
*/
7070
def noneToAnyEmptyValues(res0: Boolean, res1: Boolean, res2: Boolean) {
7171
None.asInstanceOf[Any] === None shouldBe res0

0 commit comments

Comments
 (0)