aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx/using
diff options
context:
space:
mode:
authorHugo Herbelin2020-11-05 13:17:38 +0100
committerHugo Herbelin2020-11-14 22:55:47 +0100
commit0b12bb8c03b0ac7cc8aa7578a8db8ca93ecd1fd0 (patch)
tree2943d1413d4eac8163cf599421f543ca99b8b2eb /doc/sphinx/using
parent7923bb570cd493aff31ac1c94f9e03ff4efd465f (diff)
Documenting one-line verbatim.
Diffstat (limited to 'doc/sphinx/using')
-rw-r--r--doc/sphinx/using/tools/coqdoc.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/sphinx/using/tools/coqdoc.rst b/doc/sphinx/using/tools/coqdoc.rst
index 7ab8f9d763..b68b2ed2a7 100644
--- a/doc/sphinx/using/tools/coqdoc.rst
+++ b/doc/sphinx/using/tools/coqdoc.rst
@@ -200,6 +200,14 @@ at the beginning of a line.
if n <= 1 then 1 else n * fact (n-1)
>>
+Verbatim material on a single line is also possible (assuming that
+``>>`` is not part of the text to be presented as verbatim).
+
+.. example::
+
+ ::
+
+ Here is the corresponding caml expression: << fact (n-1) >>
Hyperlinks