You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/indexing.jl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Default error messages to help users with new types and to avoid subsequent stack overflows
2
2
getindex(a::StaticArray, i::Int) =error("getindex(::$(typeof(a)), ::Int) is not defined.")
3
-
setindex!(a::StaticArray, value, i::Int) =error("setindex!(::$(typeof(a)), value, ::Int) is not defined.")
3
+
setindex!(a::StaticArray, value, i::Int) =error("setindex!(::$(typeof(a)), value, ::Int) is not defined.\n Hint: Use `MArray` or `SizedArray` to create a mutable static array")
0 commit comments