From f002196afe19b80b6c39500f9b664768aa1cb0b2 Mon Sep 17 00:00:00 2001 From: matteo baccan Date: Sat, 20 Jun 2026 08:35:56 +0200 Subject: [PATCH] fix: correct typos in comments in buffer.rs and sort.c --- deps/ntfind/src/buffer.rs | 4 ++-- deps/ntsort/sort.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/ntfind/src/buffer.rs b/deps/ntfind/src/buffer.rs index 77545ac..428627b 100644 --- a/deps/ntfind/src/buffer.rs +++ b/deps/ntfind/src/buffer.rs @@ -226,9 +226,9 @@ impl BufferStream { // find.exe would transparently use memory mapping for `FILE_TYPE_DISK` (see `FILE_STREAM::Initialize`). // This doesn't work well with Rust, as we cannot handle the `EXCEPTION_IN_PAGE_ERROR` SEH exception. // That's not a problem. ulib is quite poorly written and we can outperform it with `ReadFile` anyway. - // `(Rtl)IsTextUnicode` also only inspects the first 256 bytes, so `ReadFile` doesn't loose us anything. + // `(Rtl)IsTextUnicode` also only inspects the first 256 bytes, so `ReadFile` doesn't lose us anything. // - // Why does this matter? Because ulib contains two distinct and separat copies of the `RtlIsTextUnicode` + // Why does this matter? Because ulib contains two distinct and separate copies of the `RtlIsTextUnicode` // logic and their flags subtly differ. There's no explanation in the code why that is. // // NOTE that technically ulib also checks the file size and restricts mmap to <3GiB. diff --git a/deps/ntsort/sort.c b/deps/ntsort/sort.c index b83513c..da0acbe 100644 --- a/deps/ntsort/sort.c +++ b/deps/ntsort/sort.c @@ -2262,7 +2262,7 @@ run_t *tree_insert(run_t *run, int not_empty) winner = (not_empty ? run : END_OF_RUN); - /* start at the bottom of the tournament tree, work up the the top + /* start at the bottom of the tournament tree, work up the top * comparing the current winner run with the runs on the path to the * top of the tournament tree. */