Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
oiwn committed Jan 15, 2025
1 parent f2048d0 commit b181d75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[files]
extend-exclude = ["*.html"]
4 changes: 2 additions & 2 deletions benches/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn read_file_content_from_zip(zip_path: &str, file_name: &str) -> Option<String>
result
}

fn benchmark_test_1_html_dom_content_extaction(c: &mut Criterion) {
fn benchmark_test_1_html_dom_content_extraction(c: &mut Criterion) {
let content = read_file("html/test_1.html").unwrap();
c.bench_function("test_1_dom_content_extraction", |b| {
b.iter(|| {
Expand Down Expand Up @@ -122,7 +122,7 @@ fn benchmark_node_text_extraction(c: &mut Criterion) {

criterion_group!(
benches,
benchmark_test_1_html_dom_content_extaction,
benchmark_test_1_html_dom_content_extraction,
benchmark_real_file_dom_content_extraction,
benchmark_real_file_density_tree_calculation,
benchmark_real_file_density_tree_calculation_and_sort,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ impl<'a> DensityTree {
}

impl std::fmt::Debug for DensityTree {
/// Format tree with identation
/// Format tree with indentation
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
fn pretty_print(
f: &mut std::fmt::Formatter<'_>,
Expand Down

0 comments on commit b181d75

Please sign in to comment.