Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
mbauman committed Aug 7, 2023
1 parent e250233 commit c9b5705
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions base/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1524,10 +1524,9 @@ _isdisjoint(as::Tuple, bs::Tuple) = !(as[1] in bs) && _isdisjoint(tail(as), bs)
Return a tuple of `UInt`s that represent the mutable data segments of an array.
Custom arrays that would like to opt-in to aliasing detection of their component
parts can specialize this method to return the concatenation of the `dataids` of
their component parts. A typical definition for an array that wraps a parent is
`Base.dataids(C::CustomArray) = dataids(C.parent)`.
The default implementation recursively combines the `dataids` of all fields of the struct.
Custom arrays only need to implement a custom `dataids` method if they depend upon non-array
fields to define their contents and are immutable.
"""
function dataids(A::AbstractArray)
@inline
Expand Down

0 comments on commit c9b5705

Please sign in to comment.