aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorMaxime Dénès2017-10-25 10:16:57 +0200
committerMaxime Dénès2017-10-25 10:16:57 +0200
commitad973248998da8d7d10ed00f4bcd6f383ba9a171 (patch)
tree705a2b2de824b39d97a28fcea3b8287b53204b54 /kernel
parent7d2dfd6fabd5d447166b1cb0e3b2993cc8abf4b3 (diff)
parent069ab52e2af900d498395ebd1b00b7983152326e (diff)
Merge PR #6009: Master+misc typos dead code etc
Diffstat (limited to 'kernel')
-rw-r--r--kernel/context.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/context.ml b/kernel/context.ml
index 929324efec..d635c4515b 100644
--- a/kernel/context.ml
+++ b/kernel/context.ml
@@ -379,8 +379,9 @@ struct
(** Return the number of {e local declarations} in a given named-context. *)
let length = List.length
-(** Return a declaration designated by a given de Bruijn index.
- @raise Not_found if the designated identifier is not present in the designated named-context. *) let rec lookup id = function
+(** Return a declaration designated by a given identifier
+ @raise Not_found if the designated identifier is not present in the designated named-context. *)
+ let rec lookup id = function
| decl :: _ when Id.equal id (Declaration.get_id decl) -> decl
| _ :: sign -> lookup id sign
| [] -> raise Not_found