Skip to content

Commit

Permalink
Remove unnecessary pub from example code (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 committed Mar 11, 2023
1 parent a6d7650 commit 2942aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/getting_started.md
Expand Up @@ -42,7 +42,7 @@ below for an explanation of this code):
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use mycrate::fibonacci;

pub fn criterion_benchmark(c: &mut Criterion) {
fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("fib 20", |b| b.iter(|| fibonacci(black_box(20))));
}

Expand Down

0 comments on commit 2942aee

Please sign in to comment.