Skip to content

Commit

Permalink
remove repetitive code
Browse files Browse the repository at this point in the history
Signed-off-by: cui fliter <[email protected]>
  • Loading branch information
cuishuang committed Mar 4, 2024
1 parent 4d5a20d commit b6680f2
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 b6680f2

Please sign in to comment.