diff options
Diffstat (limited to 'examples/src/main')
-rw-r--r-- | examples/src/main/scala/decode.scala | 2 | ||||
-rw-r--r-- | examples/src/main/scala/show.scala | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/src/main/scala/decode.scala b/examples/src/main/scala/decode.scala index eca56d2..8603b9e 100644 --- a/examples/src/main/scala/decode.scala +++ b/examples/src/main/scala/decode.scala @@ -9,7 +9,7 @@ import scala.language.experimental.macros /** very basic decoder for converting strings to other types */ trait Decoder[T] { def decode(str: String): T } -/** derivation object (and companion object) for [[Derivation]] instances */ +/** derivation object (and companion object) for [[Decoder]] instances */ object Decoder { /** decodes strings */ diff --git a/examples/src/main/scala/show.scala b/examples/src/main/scala/show.scala index 9da507c..860871e 100644 --- a/examples/src/main/scala/show.scala +++ b/examples/src/main/scala/show.scala @@ -9,7 +9,7 @@ import scala.language.experimental.macros /** shows one type as another, often as a string * * Note that this is a more general form of `Show` than is usual, as it permits the return type to - * be something other than [[String]]. */ + * be something other than a string. */ trait Show[Out, T] { def show(value: T): Out } /** companion object to [[Show]] */ @@ -17,7 +17,7 @@ object Show { /** the type constructor for new [[Show]] instances * - * The first parameter is fixed as [[String]], and the second parameter varies generically. */ + * The first parameter is fixed as `String`, and the second parameter varies generically. */ type Typeclass[T] = Show[String, T] /** creates a new [[Show]] instance by labelling and joining (with `mkString`) the result of |