mdoc: Fix documentation of `mdoc_or_fallback`
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Thu, 14 Jul 2016 17:05:52 +0000 (13:05 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Wed, 22 Mar 2017 18:57:10 +0000 (14:57 -0400)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

src/model/mdoc.nit

index 2035b06..408e572 100644 (file)
@@ -39,9 +39,13 @@ redef class MEntity
 
        # The documentation associated to the entity or their main nested entity.
        #
-       # MPackage fall-back to their root MGroup
-       # MGroup fall-back to their default_mmodule
-       # Other entities do not fall-back
+       # * `MPackage`s fall back to their root `MGroup`.
+       # * `MGroup`s fall back to their `default_mmodule`.
+       # * `MClass`es, `MClassDef`s, `MProperty`s and `MPropDef`s fall-back to
+       #   their introducing definition.
+       # * `MClassType`s fall back to their wrapped `MClass`.
+       # * `MVirtualType`s fall back to their wrapped `MProperty`.
+       # * Other entities do not fall back.
        #
        # One may use `MDoc::original_mentity` to retrieve the original
        # source of the documentation.