Skip to content

Commit 5d52821

Browse files
committed
fix some typos & update _typos.yml
turns out that the `extend-ignore-identifiers-re` config field wasn't working properly and the correct way to "ignore" "words" is with `extend-words` ref: https://github.com/crate-ci/typos/blob/master/docs/reference.md
1 parent e1d9811 commit 5d52821

File tree

7 files changed

+11
-16
lines changed

7 files changed

+11
-16
lines changed

_typos.toml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
# This TOML file used by the julelang/jule and julelang/manual repositories.
22
# Configuration is common.
3+
[files]
4+
extend-exclude = ["std/html/entity.jule"]
5+
36
[default]
4-
extend-ignore-identifiers-re = [
5-
"ue", "nd", "lok", "Thm",
6-
"sur", "leasure", "asure", "nulll", "finf",
7-
"iy", "ERROR_FILENAME_EXCED_RANGE", "FLE",
8-
"nam", "ND", "eisDST", "inh", "Vai", "VAI",
9-
"fo", "hel", "IST", "Commun", "Ofr", "becaus",
10-
"curren", "infintie", "ofr", "olt", "pluse",
11-
"pointint", "lates", "isuses", "infinit"
12-
]
7+
extend-words = { ue = "ue", nd = "nd", lok = "lok", Thm = "Thm", sur = "sur", leasure = "leasure", asure = "asure", nulll = "nulll", finf = "finf", iy = "iy", ERROR_FILENAME_EXCED_RANGE = "ERROR_FILENAME_EXCED_RANGE", FLE = "FLE", nam = "nam", ND = "ND", eis = "eis", inh = "inh", Vai = "Vai", VAI = "VAI", fo = "fo", hel = "hel", IST = "IST", Commun = "Commun", Ofr = "Ofr", becaus = "becaus", curren = "curren", infintie = "infintie", ofr = "ofr", olt = "olt", pluse = "pluse", pointint = "pointint", lates = "lates", isuses = "isuses", infinit = "infinit" }

src/julec/obj/cxx/object.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ impl ObjectCoder {
773773
self.write("\n")
774774
self.write("// Time: ")
775775
self.write(t.Format("2006-01-02 (YYYY/MM/DD) 3:04PM MST"))
776-
self.write("\n//\n// Recomended Compile Command;\n// ")
776+
self.write("\n//\n// Recommended Compile Command;\n// ")
777777
self.write(self.info.Compiler)
778778
self.write(" ")
779779
self.write(self.info.CompilerCommand)

std/encoding/json/decode.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ impl jsonDecoder {
331331
ret
332332
}
333333
self.pushParseState(parseObject) else { error(error) }
334-
// Consider string and dynamic JSON vlaue types as quoted. Directly assign string as key.
334+
// Consider string and dynamic JSON value types as quoted. Directly assign string as key.
335335
const quoted = keyT.Kind() == comptime::Str || keyT == valueT || keyT == stringT
336336
for {
337337
self.skipSpace()

std/jule/sema/eval.jule

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct ValueSym {
8282
Value: &Value
8383
}
8484

85-
// Informations about expressions that evaluating for assignments.
85+
// Information about expressions that evaluating for assignments.
8686
struct target {
8787
ignored: bool // whether the destination ignores the evaluated expression.
8888
mutable: bool // Will be assigned to the mutable storage.
@@ -892,7 +892,7 @@ impl eval {
892892
goto autoDetermine
893893
}
894894
// If prefix type is a strict type alias, we have to use its
895-
// underliying structure type for the value.
895+
// underlying structure type for the value.
896896
if v != nil {
897897
mut strct := self.prefix.SoftStruct()
898898
if strct != nil && strct.Source != nil {

std/sys/errors_unix.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use "std/internal/conv"
66

77
cpp let errno: int
88

9-
// Underliying type of Errno for UNIX.
9+
// Underlying type of Errno for UNIX.
1010
type errno = uintptr
1111

1212
fn getLastErrno(): Errno { ret Errno(cpp.errno) }

std/sys/errors_windows.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static errors: [...]str = [
290290
"not supported by windows",
291291
]
292292

293-
// Underliying type of Errno for Windows.
293+
// Underlying type of Errno for Windows.
294294
type errno = uintptr
295295

296296
fn getLastErrno(): Errno { ret Errno(GetLastError()) }

std/sys/sys_windows.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const (
7676
ERROR_WRITE_PROTECT = Errno(19)
7777
ERROR_DISK_FULL = Errno(39)
7878
ERROR_NOT_SUPPORTED = Errno(50)
79-
ERROR_FILENAME_EXCED_RANGE = Errno(206)
79+
ERROR_FILENAME_EXCEED_RANGE = Errno(206)
8080
ERROR_INVALID_PARAMETER = Errno(87)
8181
ERROR_ALREADY_EXIST = Errno(183)
8282
ERROR_BAD_LENGTH = Errno(24)

0 commit comments

Comments
 (0)