aboutsummaryrefslogtreecommitdiff
path: root/kernel/inductive.ml
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2021-04-20 11:19:26 +0200
committerPierre-Marie Pédrot2021-04-20 11:19:26 +0200
commitcab7a5ddb906e5cef57d78ba7435e89354f3125b (patch)
tree8f3f80825980f2bbb3e25d713477b7fbaa1599af /kernel/inductive.ml
parentb36fb9f68884090e5b06f9837da084395f519f96 (diff)
parente50a6195097c0d15c839c5403c1d02511afd54e4 (diff)
Merge PR #14131: Check for existence before using `Global.lookup_constant` instead of catching `Not_found`
Reviewed-by: ppedrot
Diffstat (limited to 'kernel/inductive.ml')
-rw-r--r--kernel/inductive.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/inductive.ml b/kernel/inductive.ml
index ddbd5fa0a7..13044958dc 100644
--- a/kernel/inductive.ml
+++ b/kernel/inductive.ml
@@ -23,7 +23,7 @@ open Context.Rel.Declaration
type mind_specif = mutual_inductive_body * one_inductive_body
-(* raise Not_found if not an inductive type *)
+(* raises an anomaly if not an inductive type *)
let lookup_mind_specif env (kn,tyi) =
let mib = Environ.lookup_mind kn env in
if tyi >= Array.length mib.mind_packets then