Skip to content

Commit 300595d

Browse files
committed
Restrict signature of helper IConvError() constructor
More correct and gets rid of a warning about overwritten method with Julia 0.5.
1 parent 7e4b8bb commit 300595d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StringEncodings.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ message(::Type{InvalidSequenceError}) = "Byte sequence 0x<<1>> is invalid in sou
2828
type IConvError <: StringEncodingError
2929
args::Tuple{ASCIIString, Int, ASCIIString}
3030
end
31-
IConvError(func) = IConvError((func, errno(), strerror(errno())))
31+
IConvError(func::ASCIIString) = IConvError((func, errno(), strerror(errno())))
3232
message(::Type{IConvError}) = "<<1>>: <<2>> (<<3>>)"
3333

3434
# Input ended with incomplete byte sequence

0 commit comments

Comments
 (0)