Skip to content

Commit 57dfa14

Browse files
Update typos 1.38.1 (#16219)
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
1 parent ada0e87 commit 57dfa14

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
uses: actions/checkout@v5
111111

112112
- name: Spell Check Repo
113-
uses: crate-ci/typos@v1.36.2
113+
uses: crate-ci/typos@v1.38.1
114114
env:
115115
CLICOLOR: 1
116116

_typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ extend-ignore-re = [
4747
'tr‸ue|fo‸o',
4848
"\"[^\"]+\"\\.to_slice\\s*=> [\"']\\\\u", # src/html/entities.cr
4949
" ([a-zA-Z.]{8} ){4}->", # src/bit_array.cr
50+
"[A-z]+[0-9]+", # words including a number are likely some kind of identifier
51+
"sha256[:-][0-9A-z=]+", # shell.nix
5052
]
5153

5254
[files]

spec/std/yaml/serialization_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ describe "YAML serialization" do
412412
end
413413

414414
describe "Union.from_yaml" do
415-
it "String priorization" do
415+
it "String prioritization" do
416416
(Int32 | String).from_yaml(%(42)).should eq 42
417417
(Int32 | String).from_yaml(%("42")).should eq "42"
418418

src/string.cr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ class String
17511751
# "string\r\n".rchop # => "string\r"
17521752
# "string\n\r".rchop # => "string\n"
17531753
# "string\n".rchop # => "string"
1754-
# "string".rchop # => "strin"
1754+
# "strings".rchop # => "string"
17551755
# "x".rchop.rchop # => ""
17561756
# ```
17571757
def rchop : String
@@ -1761,7 +1761,7 @@ class String
17611761
# Returns a new `String` with *suffix* removed from the end of the string.
17621762
#
17631763
# ```
1764-
# "string".rchop('g') # => "strin"
1764+
# "strings".rchop('s') # => "string"
17651765
# "string".rchop('x') # => "string"
17661766
# "string".rchop("ing") # => "str"
17671767
# "string".rchop("inx") # => "string"
@@ -1776,7 +1776,7 @@ class String
17761776
# "string\r\n".rchop? # => "string\r"
17771777
# "string\n\r".rchop? # => "string\n"
17781778
# "string\n".rchop? # => "string"
1779-
# "string".rchop? # => "strin"
1779+
# "strings".rchop? # => "string"
17801780
# "".rchop? # => nil
17811781
# ```
17821782
def rchop? : String?
@@ -1788,7 +1788,7 @@ class String
17881788
# Returns a new `String` with *suffix* removed from the end of the string if possible, else returns `nil`.
17891789
#
17901790
# ```
1791-
# "string".rchop?('g') # => "strin"
1791+
# "strings".rchop?('s') # => "string"
17921792
# "string".rchop?('x') # => nil
17931793
# "string".rchop?("ing") # => "str"
17941794
# "string".rchop?("inx") # => nil

0 commit comments

Comments
 (0)