diff options
| author | Maxime Dénès | 2017-10-25 10:16:57 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2017-10-25 10:16:57 +0200 |
| commit | ad973248998da8d7d10ed00f4bcd6f383ba9a171 (patch) | |
| tree | 705a2b2de824b39d97a28fcea3b8287b53204b54 /kernel | |
| parent | 7d2dfd6fabd5d447166b1cb0e3b2993cc8abf4b3 (diff) | |
| parent | 069ab52e2af900d498395ebd1b00b7983152326e (diff) | |
Merge PR #6009: Master+misc typos dead code etc
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/context.ml | 5 |
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 |
