Merge pull request #4140 from dbenn/patch-1

[coq/en] Update coq.html.markdown
This commit is contained in:
Max Schumacher 2021-03-21 15:23:05 +01:00 committed by GitHub
commit 1c5fecd845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,8 +61,8 @@ Locate "+".
(* Calling a function with insufficient number of arguments does not cause (* Calling a function with insufficient number of arguments does not cause
an error, it produces a new function. *) an error, it produces a new function. *)
Definition make_inc x y := x + y. (* make_inc is int -> int -> int *) Definition make_inc x y := x + y. (* make_inc is nat -> nat -> nat *)
Definition inc_2 := make_inc 2. (* inc_2 is int -> int *) Definition inc_2 := make_inc 2. (* inc_2 is nat -> nat *)
Compute inc_2 3. (* Evaluates to 5 *) Compute inc_2 3. (* Evaluates to 5 *)