aboutsummaryrefslogtreecommitdiff
path: root/kernel/environ.mli
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-05-03 00:41:55 +0200
committerPierre-Marie Pédrot2019-05-11 12:43:22 +0200
commit3c6ed7485293c7eb80f9c4d415af0ee0b977f157 (patch)
treeb7f10c57adf811b57f98fabe5783c6852c19f9d0 /kernel/environ.mli
parent15d4547b977e96ed2bc26cea683f5f4f3c9ee137 (diff)
Generalize map_named_val to handle whole declarations.
Diffstat (limited to 'kernel/environ.mli')
-rw-r--r--kernel/environ.mli4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/environ.mli b/kernel/environ.mli
index 8c6bc105c7..4e6dbbe206 100644
--- a/kernel/environ.mli
+++ b/kernel/environ.mli
@@ -134,9 +134,9 @@ val ids_of_named_context_val : named_context_val -> Id.Set.t
(** [map_named_val f ctxt] apply [f] to the body and the type of
each declarations.
- *** /!\ *** [f t] should be convertible with t *)
+ *** /!\ *** [f t] should be convertible with t, and preserve the name *)
val map_named_val :
- (constr -> constr) -> named_context_val -> named_context_val
+ (named_declaration -> named_declaration) -> named_context_val -> named_context_val
val push_named : Constr.named_declaration -> env -> env
val push_named_context : Constr.named_context -> env -> env