Skip to content

Commit

Permalink
[External] [stdlib] Fix math.math.mojo examples (#50830)
Browse files Browse the repository at this point in the history
[External] [stdlib] Fix `math.math.mojo` examples

Part of #3572.

Co-authored-by: soraros <[email protected]>
Closes #3763
MODULAR_ORIG_COMMIT_REV_ID: 9b499c7e23f0fc7cccc3ab3ff75326364d032fe8
  • Loading branch information
soraros authored and modularbot committed Nov 15, 2024
1 parent 69e0c09 commit 02aba74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/src/math/math.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -2661,7 +2661,7 @@ trait Truncable:
var im: Float64
fn __trunc__(self) -> Self:
return Self(trunc(re), trunc(im))
return Self(trunc(self.re), trunc(self.im))
```
"""

Expand Down

0 comments on commit 02aba74

Please sign in to comment.