We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0888d7b commit 7e8e6dfCopy full SHA for 7e8e6df
lib/GPUArraysCore/src/GPUArraysCore.jl
@@ -97,7 +97,7 @@ end
97
Assert that a certain operation `op` performs scalar indexing. If this is not allowed, an
98
error will be thrown ([`allowscalar`](@ref)).
99
"""
100
-function assertscalar(op = "operation")
+function assertscalar(op::String)
101
behavior = get(task_local_storage(), :ScalarIndexing, nothing)
102
if behavior === nothing
103
behavior = requested_scalar_indexing[]
0 commit comments