From 9dcc8c1220eb9f0ecda2939881143513f7e842e7 Mon Sep 17 00:00:00 2001 From: jz2903 <33365321+jz2903@users.noreply.github.com> Date: Sun, 11 Apr 2021 22:34:41 +0800 Subject: [PATCH 1/9] fix typo in contrib/add_license_to_files.jl --- contrib/add_license_to_files.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/add_license_to_files.jl b/contrib/add_license_to_files.jl index eecca7dc3f464..c5aa0f49d99d3 100644 --- a/contrib/add_license_to_files.jl +++ b/contrib/add_license_to_files.jl @@ -20,7 +20,7 @@ const rootdirs = [ "../stdlib", ] -# to exculde whole sub directories +# to exclude whole sub directories const excludedirs = [ # see: https://github.com/JuliaLang/julia/pull/11073#issuecomment-98090053 "../base/ryu", From a09616c718e4736b0182a94203a438516f59f72d Mon Sep 17 00:00:00 2001 From: jz2903 <33365321+jz2903@users.noreply.github.com> Date: Sun, 11 Apr 2021 22:38:40 +0800 Subject: [PATCH 2/9] fix typo in base/compiler/typelattice.jl --- base/compiler/typelattice.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/compiler/typelattice.jl b/base/compiler/typelattice.jl index e2668e15c9e2c..0f3dd7b4a84ed 100644 --- a/base/compiler/typelattice.jl +++ b/base/compiler/typelattice.jl @@ -19,7 +19,7 @@ import Core: Const, PartialStruct # The type of this value might be Bool. -# However, to enable a limited amount of back-propagagation, +# However, to enable a limited amount of back-propagation, # we also keep some information about how this Bool value was created. # In particular, if you branch on this value, then may assume that in # the true branch, the type of `var` will be limited by `vtype` and in From d7be3c57b3b1fa86c1a9b3d157130d2e4da60750 Mon Sep 17 00:00:00 2001 From: jz2903 <33365321+jz2903@users.noreply.github.com> Date: Sun, 11 Apr 2021 22:39:32 +0800 Subject: [PATCH 3/9] fix typo in base/compiler/methodtable.jl --- base/compiler/methodtable.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/compiler/methodtable.jl b/base/compiler/methodtable.jl index 1a0b4076f3ed9..cff9e21fccb41 100644 --- a/base/compiler/methodtable.jl +++ b/base/compiler/methodtable.jl @@ -47,7 +47,7 @@ CachedMethodTable(table::T) where T = Find all methods in the given method table `view` that are applicable to the given signature `sig`. If no applicable methods are found, an empty result is -returned. If the number of applicable methods exeeded the specified limit, +returned. If the number of applicable methods exceeded the specified limit, `missing` is returned. """ function findall(@nospecialize(sig::Type{<:Tuple}), table::InternalMethodTable; limit::Int=typemax(Int)) From 28f37890f70d299932aef5b6692bafcee7d03ceb Mon Sep 17 00:00:00 2001 From: jz2903 <33365321+jz2903@users.noreply.github.com> Date: Sun, 11 Apr 2021 22:42:13 +0800 Subject: [PATCH 4/9] fix typo in domtree.jl --- base/compiler/ssair/domtree.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/compiler/ssair/domtree.jl b/base/compiler/ssair/domtree.jl index 1ab2876b769da..c2f056a0c027b 100644 --- a/base/compiler/ssair/domtree.jl +++ b/base/compiler/ssair/domtree.jl @@ -244,7 +244,7 @@ function update_level!(nodes::Vector{DomTreeNode}, node::BBNumber, level::Int) end """ -The main Semi-NCA algrithm. Matches Figure 2.8 in [LG05]. Note that the +The main Semi-NCA algorithm. Matches Figure 2.8 in [LG05]. Note that the pseudocode in [LG05] is not entirely accurate. The best way to understand what's happening is to read [LT79], then the description of SLT in [LG05] (warning: inconsistent notation), then the description of Semi-NCA. From d9ef0b30bb9e5c90bdc980c743499c6eeb9fd8e8 Mon Sep 17 00:00:00 2001 From: jz2903 <33365321+jz2903@users.noreply.github.com> Date: Sun, 11 Apr 2021 22:43:45 +0800 Subject: [PATCH 5/9] fix a typo in inlining.jl --- base/compiler/ssair/inlining.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/compiler/ssair/inlining.jl b/base/compiler/ssair/inlining.jl index f95ff55b75e84..c07e2b8365d51 100644 --- a/base/compiler/ssair/inlining.jl +++ b/base/compiler/ssair/inlining.jl @@ -103,7 +103,7 @@ function CFGInliningState(ir::IRCode) end # Tells the inliner that we're now inlining into block `block`, meaning -# all previous blocks have been proceesed and can be added to the new cfg +# all previous blocks have been processed and can be added to the new cfg function inline_into_block!(state::CFGInliningState, block::Int) if state.first_bb != block new_range = state.first_bb+1:block From 83a8347027ee5d3879275669ff8c6e1817e8dd86 Mon Sep 17 00:00:00 2001 From: jz2903 <33365321+jz2903@users.noreply.github.com> Date: Sun, 11 Apr 2021 22:45:32 +0800 Subject: [PATCH 6/9] fix typos in show.jl --- base/compiler/ssair/show.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/compiler/ssair/show.jl b/base/compiler/ssair/show.jl index 1f822ee687214..64477354ffc9d 100644 --- a/base/compiler/ssair/show.jl +++ b/base/compiler/ssair/show.jl @@ -192,7 +192,7 @@ example (taken from `@code_typed sin(1.0)`): ``` The three annotations are indicated with `*`. The first one is the line number of the -active function (printed once whenver the outer most line number changes). The second +active function (printed once whenever the outer most line number changes). The second is the inlining indicator. The number of lines indicate the level of nesting, with a half-size line (╷) indicating the start of a scope and a full size line (│) indicating 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 and tradeoffs involved. ``` -f() = leaf_function() # Delibarately not defined to end up in the IR verbatim +f() = leaf_function() # Deliberately not defined to end up in the IR verbatim g() = f() h() = g() top_function() = h() From 5f818abe79c0d8ce8a11133e3615bbe25841f598 Mon Sep 17 00:00:00 2001 From: jz2903 <33365321+jz2903@users.noreply.github.com> Date: Sun, 11 Apr 2021 22:47:22 +0800 Subject: [PATCH 7/9] fix a typo in toml_parser.jl --- base/toml_parser.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/toml_parser.jl b/base/toml_parser.jl index 916a93fdf0d22..041211a72e869 100644 --- a/base/toml_parser.jl +++ b/base/toml_parser.jl @@ -751,7 +751,7 @@ isvalid_binary(c::Char) = '0' <= c <= '1' const ValidSigs = Union{typeof.([isvalid_hex, isvalid_oct, isvalid_binary, isdigit])...} # This function eats things accepted by `f` but also allows eating `_` in between -# digits. Retruns if it ate at lest one character and if it ate an underscore +# digits. Returns if it ate at lest one character and if it ate an underscore function accept_batch_underscore(l::Parser, f::ValidSigs, fail_if_underscore=true)::Err{Tuple{Bool, Bool}} contains_underscore = false at_least_one = false From 2b72c3012dea92d9b5c90ad07d3a301e8679cc09 Mon Sep 17 00:00:00 2001 From: jz2903 <33365321+jz2903@users.noreply.github.com> Date: Sun, 11 Apr 2021 22:48:23 +0800 Subject: [PATCH 8/9] fix a typo in binaryplatforms.jl --- base/binaryplatforms.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/binaryplatforms.jl b/base/binaryplatforms.jl index 8c9c6768090e0..aff1de4a80993 100644 --- a/base/binaryplatforms.jl +++ b/base/binaryplatforms.jl @@ -141,7 +141,7 @@ function Base.setindex!(p::AbstractPlatform, v::String, k::String) return p end -# Hash definitino to ensure that it's stable +# Hash definition to ensure that it's stable function Base.hash(p::Platform, h::UInt) h += 0x506c6174666f726d % UInt h = hash(p.tags, h) From fd1165f00c3b1535e0cea0918fd0c97d98944879 Mon Sep 17 00:00:00 2001 From: jz2903 <33365321+jz2903@users.noreply.github.com> Date: Sun, 11 Apr 2021 22:50:08 +0800 Subject: [PATCH 9/9] fix a typo in show.jl --- base/show.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/show.jl b/base/show.jl index 4ff7d6916f0de..c98637a026112 100644 --- a/base/show.jl +++ b/base/show.jl @@ -1264,7 +1264,7 @@ const ExprNode = Union{Expr, QuoteNode, Slot, LineNumberNode, SSAValue, # IOContext(io, :unquote_fallback => false) tells show_unquoted to treat any # Expr whose head is :$ as if it is inside a quote, preventing fallback to the # "unhandled" case: this is used by print/string to be lawful to Rule 1 above. -# On the countrary, show/repr have to follow Rule 2, requiring any Expr whose +# On the contrary, show/repr have to follow Rule 2, requiring any Expr whose # head is :$ and which is not inside a quote to fallback to the "unhandled" case: # this is behavior is triggered by IOContext(io, :unquote_fallback => true) print( io::IO, ex::ExprNode) = (show_unquoted(IOContext(io, :unquote_fallback => false), ex, 0, -1); nothing)