Skip to content

Commit 0a6ea9f

Browse files
authored
fix some typos (#40434)
Fix typos in comments
1 parent d29126a commit 0a6ea9f

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

base/binaryplatforms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function Base.setindex!(p::AbstractPlatform, v::String, k::String)
141141
return p
142142
end
143143

144-
# Hash definitino to ensure that it's stable
144+
# Hash definition to ensure that it's stable
145145
function Base.hash(p::Platform, h::UInt)
146146
h += 0x506c6174666f726d % UInt
147147
h = hash(p.tags, h)

base/compiler/methodtable.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ CachedMethodTable(table::T) where T =
4747
4848
Find all methods in the given method table `view` that are applicable to the
4949
given signature `sig`. If no applicable methods are found, an empty result is
50-
returned. If the number of applicable methods exeeded the specified limit,
50+
returned. If the number of applicable methods exceeded the specified limit,
5151
`missing` is returned.
5252
"""
5353
function findall(@nospecialize(sig::Type{<:Tuple}), table::InternalMethodTable; limit::Int=typemax(Int))

base/compiler/ssair/domtree.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function update_level!(nodes::Vector{DomTreeNode}, node::BBNumber, level::Int)
244244
end
245245

246246
"""
247-
The main Semi-NCA algrithm. Matches Figure 2.8 in [LG05]. Note that the
247+
The main Semi-NCA algorithm. Matches Figure 2.8 in [LG05]. Note that the
248248
pseudocode in [LG05] is not entirely accurate. The best way to understand
249249
what's happening is to read [LT79], then the description of SLT in [LG05]
250250
(warning: inconsistent notation), then the description of Semi-NCA.

base/compiler/ssair/inlining.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function CFGInliningState(ir::IRCode)
103103
end
104104

105105
# Tells the inliner that we're now inlining into block `block`, meaning
106-
# all previous blocks have been proceesed and can be added to the new cfg
106+
# all previous blocks have been processed and can be added to the new cfg
107107
function inline_into_block!(state::CFGInliningState, block::Int)
108108
if state.first_bb != block
109109
new_range = state.first_bb+1:block

base/compiler/ssair/show.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ example (taken from `@code_typed sin(1.0)`):
192192
```
193193
194194
The three annotations are indicated with `*`. The first one is the line number of the
195-
active function (printed once whenver the outer most line number changes). The second
195+
active function (printed once whenever the outer most line number changes). The second
196196
is the inlining indicator. The number of lines indicate the level of nesting, with a
197197
half-size line (╷) indicating the start of a scope and a full size line (│) indicating
198198
a continuing scope. The last annotation is the most complicated one. It is a heuristic
@@ -201,7 +201,7 @@ scope that hasn't been printed before. Let's work a number of examples to see th
201201
and tradeoffs involved.
202202
203203
```
204-
f() = leaf_function() # Delibarately not defined to end up in the IR verbatim
204+
f() = leaf_function() # Deliberately not defined to end up in the IR verbatim
205205
g() = f()
206206
h() = g()
207207
top_function() = h()

base/compiler/typelattice.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import Core: Const, PartialStruct
2020

2121
# The type of this value might be Bool.
22-
# However, to enable a limited amount of back-propagagation,
22+
# However, to enable a limited amount of back-propagation,
2323
# we also keep some information about how this Bool value was created.
2424
# In particular, if you branch on this value, then may assume that in
2525
# the true branch, the type of `var` will be limited by `vtype` and in

base/show.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ const ExprNode = Union{Expr, QuoteNode, Slot, LineNumberNode, SSAValue,
12641264
# IOContext(io, :unquote_fallback => false) tells show_unquoted to treat any
12651265
# Expr whose head is :$ as if it is inside a quote, preventing fallback to the
12661266
# "unhandled" case: this is used by print/string to be lawful to Rule 1 above.
1267-
# On the countrary, show/repr have to follow Rule 2, requiring any Expr whose
1267+
# On the contrary, show/repr have to follow Rule 2, requiring any Expr whose
12681268
# head is :$ and which is not inside a quote to fallback to the "unhandled" case:
12691269
# this is behavior is triggered by IOContext(io, :unquote_fallback => true)
12701270
print( io::IO, ex::ExprNode) = (show_unquoted(IOContext(io, :unquote_fallback => false), ex, 0, -1); nothing)

base/toml_parser.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ isvalid_binary(c::Char) = '0' <= c <= '1'
751751

752752
const ValidSigs = Union{typeof.([isvalid_hex, isvalid_oct, isvalid_binary, isdigit])...}
753753
# This function eats things accepted by `f` but also allows eating `_` in between
754-
# digits. Retruns if it ate at lest one character and if it ate an underscore
754+
# digits. Returns if it ate at lest one character and if it ate an underscore
755755
function accept_batch_underscore(l::Parser, f::ValidSigs, fail_if_underscore=true)::Err{Tuple{Bool, Bool}}
756756
contains_underscore = false
757757
at_least_one = false

contrib/add_license_to_files.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const rootdirs = [
2020
"../stdlib",
2121
]
2222

23-
# to exculde whole sub directories
23+
# to exclude whole sub directories
2424
const excludedirs = [
2525
# see: https://github.com/JuliaLang/julia/pull/11073#issuecomment-98090053
2626
"../base/ryu",

0 commit comments

Comments
 (0)