Skip to content

Commit 6a095e5

Browse files
committed
comment out docstring that triggers segfault
1 parent da19ccb commit 6a095e5

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/util.jl

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,19 @@ TrivialView(a::AbstractArray{T,N}) where {T,N} = TrivialView{typeof(a),T,N}(a)
7676

7777
# Remove the static dimensions from an array
7878

79-
"""
80-
drop_sdims(a)
81-
82-
Return an `AbstractArray` with the same elements as `a`, but with static
83-
dimensions removed (ie, not a `StaticArray`).
84-
85-
This is useful if you want to override dispatch to call the `Base` version of
86-
operations such as `kron` instead of the implementation in `StaticArrays`.
87-
Normally you shouldn't need to do this, but it can be more efficient for
88-
certain algorithms where the number of elements of the output is a lot larger
89-
than the input.
90-
"""
79+
# This docstring is commented out, because of a bug that happens when building the docs.
80+
# See https://github.com/JuliaLang/julia/issues/23826
81+
# """
82+
# drop_sdims(a)
83+
#
84+
# Return an `AbstractArray` with the same elements as `a`, but with static
85+
# dimensions removed (ie, not a `StaticArray`).
86+
#
87+
# This is useful if you want to override dispatch to call the `Base` version of
88+
# operations such as `kron` instead of the implementation in `StaticArrays`.
89+
# Normally you shouldn't need to do this, but it can be more efficient for
90+
# certain algorithms where the number of elements of the output is a lot larger
91+
# than the input.
92+
# """
9193
@inline drop_sdims(a::StaticArray) = TrivialView(a)
9294
@inline drop_sdims(a) = a

0 commit comments

Comments
 (0)