Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/miji/advanced/generic.md
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ First, it provides a built-in trait called `Absable`, which requires the type to
# Mojo v25.4 standard library
# mojo/stdlib/stdlib/builtin/math.mojo
# Some code omitted for brevity
struct Absable():
trait Absable():
def __abs__(self) -> Self:
...
```
Expand All @@ -647,7 +647,7 @@ Then, it provides a built-in function `abs()` that takes any type that implement
# Mojo v25.4 standard library
# mojo/stdlib/stdlib/builtin/math.mojo
# Some code omitted for brevity
struct Absable():
trait Absable():
fn abs[T: Absable](value: T) -> T:
return value.__abs__()
```
Expand Down