aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sphinx')
-rw-r--r--doc/sphinx/addendum/extended-pattern-matching.rst2
-rw-r--r--doc/sphinx/language/gallina-extensions.rst10
2 files changed, 7 insertions, 5 deletions
diff --git a/doc/sphinx/addendum/extended-pattern-matching.rst b/doc/sphinx/addendum/extended-pattern-matching.rst
index 3ec6c118af..e882ce6e88 100644
--- a/doc/sphinx/addendum/extended-pattern-matching.rst
+++ b/doc/sphinx/addendum/extended-pattern-matching.rst
@@ -285,7 +285,7 @@ By default, implicit arguments are omitted in patterns. So we write:
.. coqtop:: all
- Arguments nil [A].
+ Arguments nil {A}.
Arguments cons [A] _ _.
Check
(fun l:List nat =>
diff --git a/doc/sphinx/language/gallina-extensions.rst b/doc/sphinx/language/gallina-extensions.rst
index b59d0bb723..a728f5ba02 100644
--- a/doc/sphinx/language/gallina-extensions.rst
+++ b/doc/sphinx/language/gallina-extensions.rst
@@ -1621,7 +1621,7 @@ Declaring Implicit Arguments
.. coqtop:: reset all
- Inductive list (A:Type) : Type :=
+ Inductive list (A : Type) : Type :=
| nil : list A
| cons : A -> list A -> list A.
@@ -1629,13 +1629,15 @@ Declaring Implicit Arguments
Arguments cons [A] _ _.
- Arguments nil [A].
+ Arguments nil {A}.
Check (cons 3 nil).
- Fixpoint map (A B:Type) (f:A->B) (l:list A) : list B := match l with nil => nil | cons a t => cons (f a) (map A B f t) end.
+ Fixpoint map (A B : Type) (f : A -> B) (l : list A) : list B :=
+ match l with nil => nil | cons a t => cons (f a) (map A B f t) end.
- Fixpoint length (A:Type) (l:list A) : nat := match l with nil => 0 | cons _ m => S (length A m) end.
+ Fixpoint length (A : Type) (l : list A) : nat :=
+ match l with nil => 0 | cons _ m => S (length A m) end.
Arguments map [A B] f l.