Skip to content

Commit 3b137f7

Browse files
TheBBc42f
authored andcommitted
Fix default error message for getindex(::StaticArray, ::Int) (#648)
1 parent c50f1c8 commit 3b137f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/indexing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Default error messages to help users with new types and to avoid subsequent stack overflows
2-
getindex(a::StaticArray, i::Int) = error("getindex(::$typeof(a), ::Int) is not defined.")
2+
getindex(a::StaticArray, i::Int) = error("getindex(::$(typeof(a)), ::Int) is not defined.")
33
setindex!(a::StaticArray, value, i::Int) = error("setindex!(::$(typeof(a)), value, ::Int) is not defined.")
44

55
#######################################

0 commit comments

Comments
 (0)