Skip to content

Commit

Permalink
remove repetitive code (JuliaLang#53592)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuishuang authored Mar 4, 2024
1 parent 144f58b commit 688ae0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion base/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ function flatten(bc::Broadcasted)
# concatenate the nested arguments into {a, b, c, d}
args = cat_nested(bc)
# build a tuple of functions `makeargs`. Its elements take
# the whole "flat" argument list and and generate the appropriate
# the whole "flat" argument list and generate the appropriate
# input arguments for the broadcasted function `f`, e.g.,
# makeargs[1] = ((w, x, y, z)) -> w
# makeargs[2] = ((w, x, y, z)) -> g(x, y)
Expand Down
2 changes: 1 addition & 1 deletion stdlib/Profile/src/Allocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ end
Profile.Allocs.@profile [sample_rate=0.1] expr
Profile allocations that happen during `expr`, returning
both the result and and AllocResults struct.
both the result and AllocResults struct.
A sample rate of 1.0 will record everything; 0.0 will record nothing.
Expand Down
2 changes: 1 addition & 1 deletion stdlib/REPL/src/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ end

find_hist_file() = get(ENV, "JULIA_HISTORY",
!isempty(DEPOT_PATH) ? joinpath(DEPOT_PATH[1], "logs", "repl_history.jl") :
error("DEPOT_PATH is empty and and ENV[\"JULIA_HISTORY\"] not set."))
error("DEPOT_PATH is empty and ENV[\"JULIA_HISTORY\"] not set."))

backend(r::AbstractREPL) = r.backendref

Expand Down

0 comments on commit 688ae0a

Please sign in to comment.