summaryrefslogtreecommitdiffhomepage
path: root/coq.html.markdown
diff options
context:
space:
mode:
authordbenn <dbenn@computer.org>2021-03-13 12:26:11 +1030
committerGitHub <noreply@github.com>2021-03-13 12:26:11 +1030
commitc5d94d3493c411ce6843a0f6c80b72ca16e3801e (patch)
tree799b3737dc78a4c378856421e2b307c9a1dffa55 /coq.html.markdown
parent5d2d1cf77c8f4e06c08da4657b152a2b2b06504f (diff)
Update coq.html.markdown
Suggested correction to make_inc and inc_2 as having `nat` types rather than `int`.
Diffstat (limited to 'coq.html.markdown')
-rw-r--r--coq.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/coq.html.markdown b/coq.html.markdown
index 4c1ad690..b3cc27fc 100644
--- a/coq.html.markdown
+++ b/coq.html.markdown
@@ -61,8 +61,8 @@ Locate "+".
(* Calling a function with insufficient number of arguments does not cause
an error, it produces a new function. *)
-Definition make_inc x y := x + y. (* make_inc is int -> int -> int *)
-Definition inc_2 := make_inc 2. (* inc_2 is int -> int *)
+Definition make_inc x y := x + y. (* make_inc is nat -> nat -> nat *)
+Definition inc_2 := make_inc 2. (* inc_2 is nat -> nat *)
Compute inc_2 3. (* Evaluates to 5 *)