Permalink
Browse files

two minor bugs in declaration for Unique and Comparable traits

  • Loading branch information...
1 parent 65ca13d commit f021bac72fdd0b33424c3c68260e7664b77d5220 @jeremytregunna jeremytregunna committed Feb 9, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 stdlib/Comparable.io
  2. +1 −1 stdlib/Unique.io
@@ -1,7 +1,7 @@
// Comparable only depends on two outside non-primitive methods:
// compare() -- a ternary comparison operator to be implemented
// and() -- a boolean and which should exist on true and false.
-Comparable := Object clone do(
+Comparable := Object trait do(
== := method(other, Wee primitive: equal call(self compare: other, 0)
!= := method(other, Wee primitive: not call(self compare: other == 0))
View
@@ -1,3 +1,3 @@
-Unique := Object clone do(
+Unique := Object trait do(
clone := method(self)
)

0 comments on commit f021bac

Please sign in to comment.