Skip to content

Commit

Permalink
Merge pull request #1467 from sharedrory/patch-1
Browse files Browse the repository at this point in the history
Change 1..n + 1 to 1..=n
  • Loading branch information
marioidival authored Oct 4, 2021
2 parents 111e468 + f48261d commit 9a60624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fn.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn fizzbuzz(n: u32) -> () {
// When a function returns `()`, the return type can be omitted from the
// signature
fn fizzbuzz_to(n: u32) {
for n in 1..n + 1 {
for n in 1..=n {
fizzbuzz(n);
}
}
Expand Down

0 comments on commit 9a60624

Please sign in to comment.