From 63775c06f51f41f887eba133bd466f1ad65bed4e Mon Sep 17 00:00:00 2001 From: matthieugomez Date: Fri, 19 May 2017 19:54:38 -0400 Subject: [PATCH] where {T} --- src/StringDistances.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StringDistances.jl b/src/StringDistances.jl index ea5f10d..7a283d4 100644 --- a/src/StringDistances.jl +++ b/src/StringDistances.jl @@ -84,7 +84,7 @@ const AbstractStringorGraphemeIterator = AbstractString ## 2. issue with keeping iterator property for stuff like split, join. for now, I decide to loose the #enumerator property but add it back after join. But SubString for instance does not loose the property #Base.split(x::GraphemeIterator, args...) = split(x.s, args...) #iterator{T <: GraphemeIterator}(::Type{T}, x::AbstractString) = graphemeiterator(x) -iterator{T <: AbstractString}(::Type{T}, x::AbstractString) = x +iterator(::Type{T}, x::AbstractString) where {T <: AbstractString} = x # ############################################################################## ##