From c5d94d3493c411ce6843a0f6c80b72ca16e3801e Mon Sep 17 00:00:00 2001 From: dbenn Date: Sat, 13 Mar 2021 12:26:11 +1030 Subject: Update coq.html.markdown Suggested correction to make_inc and inc_2 as having `nat` types rather than `int`. --- coq.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coq.html.markdown') 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 *) -- cgit v1.2.3