summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-09-03 09:51:23 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-09-03 09:51:23 -0400
commit0643dd336bd6e23013b0d901d73127829ac469eb (patch)
tree85a2cbd3b16055c6d3cbf7745d4253afd4450389 /doc
parenta1d30ae0ade8d45f4f358871925c6416cb691f3f (diff)
Update tutorial for Ur/Web changes
Diffstat (limited to 'doc')
-rw-r--r--doc/intro.ur4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/intro.ur b/doc/intro.ur
index e3611567..770b7b06 100644
--- a/doc/intro.ur
+++ b/doc/intro.ur
@@ -385,7 +385,7 @@ signature DOUBLE = sig
end
structure Double : DOUBLE = struct
- class double a = a -> a
+ con double a = a -> a
fun double [a] (f : double a) (x : a) : a = f x
fun mkDouble [a] (f : a -> a) : double a = f
@@ -420,7 +420,7 @@ signature OK_TYPE = sig
end
structure OkType : OK_TYPE = struct
- class ok a = unit
+ con ok a = unit
fun importantOperation [a] (_ : ok a) (_ : a) = "You found an OK value!"
val ok_int = ()
val ok_float = ()