aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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