Skip to content

Commit

Permalink
chore: rename class to trait (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
magnus-madsen authored Dec 23, 2023
1 parent 22c27d5 commit 5c0d341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/page/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def map(f: a -> b \\ ef, l: LazyList[a]): LazyList[b] \\ ef =
</Col>
<Col md="6">
<InlineEditor>
{`class Eq[a] {
{`trait Eq[a] {
def eq(x: a, y: a): Bool
def neq(x: a, y: a): Bool = not Eq.eq(x, y)
}
Expand All @@ -394,7 +394,7 @@ instance Eq[(a1, a2)] with Eq[a1], Eq[a2] {
<Row className="mb-4">
<Col md="6">
<InlineEditor>
{`class Foldable[t : Type -> Type] {
{`trait Foldable[t : Type -> Type] {
///
/// Left-associative fold of a structure.
Expand Down

0 comments on commit 5c0d341

Please sign in to comment.