Skip to content

Commit

Permalink
Make fn fibonacci() public
Browse files Browse the repository at this point in the history
  • Loading branch information
memark authored and lemmih committed Dec 6, 2022
1 parent 49b85ec commit 57c4d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/getting_started.md
Expand Up @@ -6,7 +6,7 @@ I'll assume that we have a crate, `mycrate`, whose `lib.rs` contains the followi

```rust
#[inline]
fn fibonacci(n: u64) -> u64 {
pub fn fibonacci(n: u64) -> u64 {
match n {
0 => 1,
1 => 1,
Expand Down

0 comments on commit 57c4d84

Please sign in to comment.