File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ function del_format{sym}(fmt::Type{DataFormat{sym}})
126126 nothing
127127end
128128
129- # Deletes mutliple magic bytes
129+ # Deletes multiple magic bytes
130130del_magic (magic:: Tuple , sym) = for m in magic
131131 del_magic (m, sym)
132132end
@@ -358,7 +358,8 @@ unknown{F}(::Stream{F}) = unknown(F)
358358
359359"""
360360`query(filename)` returns a `File` object with information about the
361- format inferred from the file's extension and/or magic bytes."""
361+ format inferred from the file's extension and/or magic bytes.
362+ """
362363function query (filename:: AbstractString )
363364 _, ext = splitext (filename)
364365 if haskey (ext2sym, ext)
@@ -394,7 +395,8 @@ hasfunction(s::Tuple) = false #has magic
394395
395396"""
396397`query(io, [filename])` returns a `Stream` object with information about the
397- format inferred from the magic bytes."""
398+ format inferred from the magic bytes.
399+ """
398400query (io:: IO , filename) = query (io, Nullable (String (filename)))
399401
400402function query (io:: IO , filename:: Nullable{String} = Nullable {String} ())
You can’t perform that action at this time.
0 commit comments