aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-03-06 22:07:11 -0800
committerJakob Odersky <jakob@odersky.com>2018-03-06 22:07:11 -0800
commiteb1ad3c956c828d421b7650dd3b01d5129a41a3d (patch)
treed9d9939f53a6d940f1b28441c78fa36f53bb64ff
parentd30473d1701e9f6ed4f4b7def87f6ecb8a27d21b (diff)
downloadspray-json-derivation-eb1ad3c956c828d421b7650dd3b01d5129a41a3d.tar.gz
spray-json-derivation-eb1ad3c956c828d421b7650dd3b01d5129a41a3d.tar.bz2
spray-json-derivation-eb1ad3c956c828d421b7650dd3b01d5129a41a3d.zip
Fix scaladoc markupv0.2.2
-rw-r--r--src/main/scala/annotations.scala7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/scala/annotations.scala b/src/main/scala/annotations.scala
index 5382622..216030e 100644
--- a/src/main/scala/annotations.scala
+++ b/src/main/scala/annotations.scala
@@ -11,13 +11,12 @@ import scala.annotation.StaticAnnotation
* field and is really only useful if a child itself has a field called `type`
* that would result in a conflict.
*
- * Example
- * ```
+ * Example:
+ * {{{
* // the JSON field "kind" will contain the actual type of the serialized child
* @gadt("kind") sealed abstract class Keyword(`type`: String)
* case class If(`type`: String) extends Keyword(`type`)
- * ```
- *
+ * }}}
* @param typeFieldName the name of the field to inject into a serialized JSON
* object */
final class gadt(val typeFieldName: String = "type") extends StaticAnnotation