Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add public statement to Base.Broadcast #54060

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions base/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ using .Base: Indices, OneTo, tail, to_shape, isoperator, promote_typejoin, promo
_msk_end, unsafe_bitgetindex, bitcache_chunks, bitcache_size, dumpbitcache, unalias, negate
import .Base: copy, copyto!, axes
export broadcast, broadcast!, BroadcastStyle, broadcast_axes, broadcastable, dotview, @__dot__, BroadcastFunction
public AbstractArrayStyle, ArrayStyle, Broadcasted, DefaultArrayStyle,
Unknown, Style, combine_axes, combine_styles, flatten, instantiate,
materialize, result_style

## Computing the result's axes: deprecated name
const broadcast_axes = axes
Expand Down
2 changes: 1 addition & 1 deletion test/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ f51129(v, x) = (1 .- (v ./ x) .^ 2)
@testset "Docstrings" begin
undoc = Docs.undocumented_names(Broadcast)
@test_broken isempty(undoc)
@test undoc == [:dotview]
@test undoc == [:Broadcasted, :Unknown, :dotview]
end

@testset "broadcast for `AbstractArray` without `CartesianIndex` support" begin
Expand Down