Skip to content

Commit

Permalink
Fix example in /floatable.mojo.
Browse files Browse the repository at this point in the history
Signed-off-by: Max Brylski <[email protected]>
  • Loading branch information
helehex committed Oct 16, 2024
1 parent 15c7d50 commit dbfec33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/src/builtin/floatable.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ trait FloatableRaising:
```mojo
@value
struct MaybeFloat(FloatableRasing):
var value: Variant[Float64, NoneType]
struct MaybeFloat(FloatableRaising):
var value: stdlib.utils.Variant[Float64, NoneType]
fn __float__(self) raises -> Float64:
if self.value.isa[NoneType]():
Expand Down

0 comments on commit dbfec33

Please sign in to comment.