From eb1ad3c956c828d421b7650dd3b01d5129a41a3d Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Tue, 6 Mar 2018 22:07:11 -0800 Subject: Fix scaladoc markup --- src/main/scala/annotations.scala | 7 +++---- 1 file 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 -- cgit v1.2.3