Skip to content

Commit 688ae0a

Browse files
authored
remove repetitive code (JuliaLang#53592)
1 parent 144f58b commit 688ae0a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

base/broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ function flatten(bc::Broadcasted)
338338
# concatenate the nested arguments into {a, b, c, d}
339339
args = cat_nested(bc)
340340
# build a tuple of functions `makeargs`. Its elements take
341-
# the whole "flat" argument list and and generate the appropriate
341+
# the whole "flat" argument list and generate the appropriate
342342
# input arguments for the broadcasted function `f`, e.g.,
343343
# makeargs[1] = ((w, x, y, z)) -> w
344344
# makeargs[2] = ((w, x, y, z)) -> g(x, y)

stdlib/Profile/src/Allocs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ end
4040
Profile.Allocs.@profile [sample_rate=0.1] expr
4141
4242
Profile allocations that happen during `expr`, returning
43-
both the result and and AllocResults struct.
43+
both the result and AllocResults struct.
4444
4545
A sample rate of 1.0 will record everything; 0.0 will record nothing.
4646

stdlib/REPL/src/REPL.jl

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

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

967967
backend(r::AbstractREPL) = r.backendref
968968

0 commit comments

Comments
 (0)