Skip to content

Commit dece463

Browse files
committed
fix doc
1 parent 4ce351c commit dece463

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

coq-builtin.elpi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,10 @@ type coq.inline.no coq.inline. % Coq's [no inline] (aka !)
794794
type coq.inline.default coq.inline. % The default, can be omitted
795795
type coq.inline.at int -> coq.inline. % Coq's [inline at <num>]
796796

797-
% [coq.env.fresh-global-id The ID one wants The fresh id closer to ID,
798-
% starting from 1] Generates an id which is not taken (in the current
799-
% module)
797+
% [coq.env.fresh-global-id ID FID] Generates an id FID which is fresh in
798+
% the current module and looks similar to ID, i.e. it is ID concatenated
799+
% with a number, starting from 1.
800+
% [coq.env.fresh-global-id X X] can be used to check if X is taken
800801
external pred coq.env.fresh-global-id i:id, o:id.
801802

802803
external pred coq.env.begin-module-functor % Starts a functor *E*

src/coq_elpi_builtins.ml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,9 +1945,12 @@ Supported attributes:
19451945
MLData module_inline_default;
19461946

19471947
MLCode(Pred("coq.env.fresh-global-id",
1948-
In(id,"The ID one wants",
1949-
Out(id,"The fresh id closer to ID, starting from 1",
1950-
Easy "Generates an id which is not taken (in the current module)")),
1948+
In(id,"ID",
1949+
Out(id,"FID",
1950+
Easy {|Generates an id FID which is fresh in
1951+
the current module and looks similar to ID, i.e. it is ID concatenated
1952+
with a number, starting from 1.
1953+
[coq.env.fresh-global-id X X] can be used to check if X is taken|})),
19511954
(fun id _ ~depth ->
19521955
let l = Names.Label.of_id (Names.Id.of_string_soft id) in
19531956
if not (Safe_typing.exists_objlabel l (Global.safe_env ())) then !: id

0 commit comments

Comments
 (0)