We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2c15ba + e01ff11 commit c46de59Copy full SHA for c46de59
src/trait/iter.md
@@ -38,7 +38,7 @@ impl Iterator for Fibonacci {
38
39
// Returns a Fibonacci sequence generator
40
fn fibonacci() -> Fibonacci {
41
- Fibonacci { curr: 1, next: 1 }
+ Fibonacci { curr: 0, next: 1 }
42
}
43
44
fn main() {
0 commit comments