tact-lang / tact-docs

Tact main documentation
https://docs.tact-lang.org
54 stars 41 forks source link

fix(book/operators)-Modulo #180

Closed Polaristow closed 5 months ago

Polaristow commented 5 months ago
let two: Int = 2;
two % 2; // 0
two % 1; // 1

The expression two % 1 should yield 0 instead of 1. The comment here is incorrect. I believe it should be 1 % two.

anton-trunov commented 5 months ago

Thanks @Polaristow