Skip to content

Commit

Permalink
std/math/big: fix mutability of the receiver parameter of the Int.Sub…
Browse files Browse the repository at this point in the history
… method
  • Loading branch information
mertcandav committed Nov 4, 2024
1 parent fdb5f40 commit e522f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/math/big/int.jule
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl Int {
}

// Returns x(self) - y.
fn Sub(mut self, y: Int): Int {
fn Sub(self, y: Int): Int {
mut z := Int{}
subI(z, self, y)
ret z
Expand Down

0 comments on commit e522f80

Please sign in to comment.