Skip to content

Commit 2e8d053

Browse files
authored
Fix some typos in comments and tests (#58118)
1 parent d9764d6 commit 2e8d053

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

Compiler/test/irpasses.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ end
11811181

11821182
@test Compiler.is_effect_free(Base.infer_effects(getfield, (Complex{Int}, Symbol)))
11831183

1184-
# We consider a potential deprecatio warning an effect, so for completely unkown getglobal,
1184+
# We consider a potential deprecatio warning an effect, so for completely unknown getglobal,
11851185
# we taint the effect_free bit.
11861186
@test !Compiler.is_effect_free(Base.infer_effects(getglobal, (Module, Symbol)))
11871187

base/deprecated.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ else
8787
end
8888
```
8989
90-
To find out the correct verrsion to use as the first argument, you may use
90+
To find out the correct version to use as the first argument, you may use
9191
`Base.__next_removal_version`, which is set to the next version number in which
9292
the list of changes will be cleared.
9393

base/invalidation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function scan_new_method!(methods_with_invalidated_source::IdSet{Method}, method
210210
b = convert(Core.Binding, gr)
211211
if binding_was_invalidated(b)
212212
# TODO: We could turn this into an addition if condition. For now, use it as a reasonably cheap
213-
# additional consistency chekc
213+
# additional consistency check
214214
@assert !image_backedges_only
215215
push!(methods_with_invalidated_source, method)
216216
end

base/strings/string.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ end
226226
end)(s, i, n, l)
227227
end
228228

229-
## checking UTF-8 & ACSII validity ##
229+
## checking UTF-8 & ASCII validity ##
230230
#=
231231
The UTF-8 Validation is performed by a shift based DFA.
232232
┌───────────────────────────────────────────────────────────────────┐
@@ -374,7 +374,7 @@ end
374374

375375
##
376376

377-
# Classifcations of string
377+
# Classifications of string
378378
# 0: neither valid ASCII nor UTF-8
379379
# 1: valid ASCII
380380
# 2: valid UTF-8

src/task.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ the xoshiro256 state. There are two problems with that fix, however:
993993
need four variations of the internal RNG stream for the four xoshiro256
994994
registers. That means we'd have to apply the PCG finalizer, add it to
995995
our dot product accumulator field in the child task, then apply the
996-
MurmurHash3 finalizer to that dot product and use the result to purturb
996+
MurmurHash3 finalizer to that dot product and use the result to perturb
997997
the main RNG state.
998998
999999
We avoid both problems by recognizing that the mixing function can be much less

test/core.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7340,7 +7340,7 @@ Array{Int}(undef, bignum, bignum, 0, bignum, bignum)
73407340
# but also test that it does throw if the axes multiply to a multiple of typemax(UInt)
73417341
@test_throws ArgumentError Array{Int}(undef, bignum, bignum)
73427342
@test_throws ArgumentError Array{Int}(undef, 1, bignum, bignum)
7343-
# also test that we always throw erros for negative dims even if other dims are 0 or the product is positive
7343+
# also test that we always throw errors for negative dims even if other dims are 0 or the product is positive
73447344
@test_throws ArgumentError Array{Int}(undef, 0, -4, -4)
73457345
@test_throws ArgumentError Array{Int}(undef, -4, 1, 0)
73467346
@test_throws ArgumentError Array{Int}(undef, -4, -4, 1)

test/file.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ if Sys.iswindows()
471471
else
472472
@test filesize(dir) > 0
473473
end
474-
# We need both: one to check passed time, one to comapare file's mtime()
474+
# We need both: one to check passed time, one to compare file's mtime()
475475
nowtime = time_ns() / 1e9
476476
nowwall = time()
477477
# Allow 10s skew in addition to the time it took us to actually execute this code
@@ -1383,7 +1383,7 @@ if !Sys.iswindows()
13831383
stat_d_mv = stat(d_mv)
13841384
# make sure d does not exist anymore
13851385
@test !ispath(d)
1386-
# comare s, with d_mv
1386+
# compare s, with d_mv
13871387
@test isfile(s) == isfile(d_mv)
13881388
@test islink(s) == islink(d_mv)
13891389
islink(s) && @test readlink(s) == readlink(d_mv)

test/threads_exec.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ function _atthreads_greedy_dynamic_schedule()
898898
end
899899
@test _atthreads_greedy_dynamic_schedule() == threadpoolsize(:default) * threadpoolsize(:default)
900900

901-
function _atthreads_dymamic_greedy_schedule()
901+
function _atthreads_dynamic_greedy_schedule()
902902
inc = Threads.Atomic{Int}(0)
903903
Threads.@threads :dynamic for _ = 1:threadpoolsize(:default)
904904
Threads.@threads :greedy for _ = 1:threadpoolsize(:default)
@@ -907,7 +907,7 @@ function _atthreads_dymamic_greedy_schedule()
907907
end
908908
return inc[]
909909
end
910-
@test _atthreads_dymamic_greedy_schedule() == threadpoolsize(:default) * threadpoolsize(:default)
910+
@test _atthreads_dynamic_greedy_schedule() == threadpoolsize(:default) * threadpoolsize(:default)
911911

912912
function _atthreads_static_greedy_schedule()
913913
ids = zeros(Int, threadpoolsize(:default))

0 commit comments

Comments
 (0)