From 48a8d4e82578e21b6a40be4d2a1e0a36e665d691 Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Wed, 31 Jan 2024 01:14:43 +0330 Subject: [PATCH 1/4] add ci step --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0e728e63b0..15d8de7e443 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1011,6 +1011,8 @@ jobs: with: tool: cargo-spellcheck - uses: actions/checkout@v4 + - name: Make sure dictionary is sorted and unique + run: sort -uC spellcheck.dic - name: Run cargo-spellcheck run: cargo spellcheck --code 1 From 33b5a9922c43b86ac70379b7c5533231e5bc42f4 Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Wed, 31 Jan 2024 01:45:54 +0330 Subject: [PATCH 2/4] fix ci step and sort dictionary --- .github/workflows/ci.yml | 7 ++++++- spellcheck.dic | 40 ++++++++++++++++++++-------------------- 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15d8de7e443..ca4b54732ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1012,7 +1012,12 @@ jobs: tool: cargo-spellcheck - uses: actions/checkout@v4 - name: Make sure dictionary is sorted and unique - run: sort -uC spellcheck.dic + run: | + # `sed` removes the first line (number of words) and + # the last line (new line). `sort` makes sure everything + # in between is sorted and contains no duplicates + + sed '1d; $d' spellcheck.dic | sort -uc - name: Run cargo-spellcheck run: cargo spellcheck --code 1 diff --git a/spellcheck.dic b/spellcheck.dic index ddedb90730d..ea73532afc1 100644 --- a/spellcheck.dic +++ b/spellcheck.dic @@ -1,30 +1,30 @@ 279 +& ++ +< += +> \ ~ -~4 -~12 -±1m -±1ms — -& -+ 0o777 0s 0xA 0xD 100ms 10ms +~12 +±1m +±1ms 1ms 1s 250ms 2x +~4 443 450ms 50ms 8MB -< -= -> adaptor adaptors Adaptors @@ -56,14 +56,14 @@ codec codecs combinator combinators -Config config +Config connectionless cpu cpus Customizable -Datagram datagram +Datagram datagrams deallocate deallocated @@ -73,8 +73,8 @@ dequeued deregister deregistered deregistering -Deregisters deregisters +Deregisters deregistration descriptor's destructor @@ -122,8 +122,8 @@ implementor implementors incrementing interoperate -Invariants invariants +Invariants io IOCP iOS @@ -149,8 +149,8 @@ misconfigured mock's mpmc mpsc -Multi multi +Multi multicast Multithreaded mut @@ -191,8 +191,8 @@ resize resized RMW runtime -runtimes runtime's +runtimes rwlock rx scalability @@ -229,8 +229,8 @@ symlinks sys syscall syscalls -TCP tcp +TCP TestU01 threadpool timestamp @@ -238,15 +238,15 @@ timestamps TLS TOCTOU TODO -Tokio tokio +Tokio tokio's Tokio's -Tuple tuple +Tuple tx -UDP udp +UDP UID unhandled unix @@ -255,8 +255,8 @@ unpark Unpark unparked unparking -Unparks unparks +Unparks unreceived unsafety Unsets From 9760fdf31af4de9d7abc2cabd4f6159fbf810023 Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Wed, 31 Jan 2024 02:06:40 +0330 Subject: [PATCH 3/4] fix issue with locale --- .github/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca4b54732ea..9e0a44febe1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1014,10 +1014,16 @@ jobs: - name: Make sure dictionary is sorted and unique run: | # `sed` removes the first line (number of words) and - # the last line (new line). `sort` makes sure everything - # in between is sorted and contains no duplicates - - sed '1d; $d' spellcheck.dic | sort -uc + # the last line (new line). + # + # `sort` makes sure everything in between is sorted + # and contains no duplicates. + # + # Since `sort` is sensitive to locale, we set the it + # using LC_ALL to en_US.UTF8 to be consistent in different + # environments. + + sed '1d; $d' spellcheck.dic | LC_ALL=en_US.UTF8 sort -uc - name: Run cargo-spellcheck run: cargo spellcheck --code 1 From f5c1504f07d951c94dfa0ffaaef6d184b3d3cbcf Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Wed, 31 Jan 2024 02:08:14 +0330 Subject: [PATCH 4/4] improve wording --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e0a44febe1..44cf3f6cd52 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1011,7 +1011,7 @@ jobs: with: tool: cargo-spellcheck - uses: actions/checkout@v4 - - name: Make sure dictionary is sorted and unique + - name: Make sure dictionary words are sorted and unique run: | # `sed` removes the first line (number of words) and # the last line (new line). @@ -1019,7 +1019,7 @@ jobs: # `sort` makes sure everything in between is sorted # and contains no duplicates. # - # Since `sort` is sensitive to locale, we set the it + # Since `sort` is sensitive to locale, we set it # using LC_ALL to en_US.UTF8 to be consistent in different # environments.