Skip to content

Commit 9a60624

Browse files
authored
Merge pull request #1467 from sharedrory/patch-1
Change 1..n + 1 to 1..=n
2 parents 111e468 + f48261d commit 9a60624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn fizzbuzz(n: u32) -> () {
4444
// When a function returns `()`, the return type can be omitted from the
4545
// signature
4646
fn fizzbuzz_to(n: u32) {
47-
for n in 1..n + 1 {
47+
for n in 1..=n {
4848
fizzbuzz(n);
4949
}
5050
}

0 commit comments

Comments
 (0)