Skip to content

Commit 2942aee

Browse files
authored
Remove unnecessary pub from example code (#657)
1 parent a6d7650 commit 2942aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/getting_started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ below for an explanation of this code):
4242
use criterion::{black_box, criterion_group, criterion_main, Criterion};
4343
use mycrate::fibonacci;
4444

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

0 commit comments

Comments
 (0)