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.
fibonacci()
1 parent f2c15ba commit e01ff11Copy full SHA for e01ff11
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