Skip to content

Commit 1b9a276

Browse files
authored
Changed to use inclusive range operator (#632)
1 parent 9953362 commit 1b9a276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/science/mathematics/miscellaneous/big-integers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use num::bigint::{BigInt, ToBigInt};
99
1010
fn factorial(x: i32) -> BigInt {
1111
if let Some(mut factorial) = 1.to_bigint() {
12-
for i in 1..(x+1) {
12+
for i in 1..=x {
1313
factorial = factorial * i;
1414
}
1515
factorial

0 commit comments

Comments
 (0)