Skip to content

Commit b483b91

Browse files
committed
Union() -> Union{}
1 parent 8bdac15 commit b483b91

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ObjFileBase.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ sectionsize(x::SectionRef) = sectionsize(deref(x))
123123
sectionaddress(x::SectionRef) = sectionaddress(deref(x))
124124
sectionoffset(x::SectionRef) = sectionoffset(deref(x))
125125

126-
handleT{T}(::Union(Type{SectionRef{T}}, Type{Section{T}}, Type{SymbolRef{T}},
127-
Type{SymtabEntry{T}})) = T
126+
handleT{T}(::Union{Type{SectionRef{T}}, Type{Section{T}}, Type{SymbolRef{T}},
127+
Type{SymtabEntry{T}}}) = T
128128

129129
abstract StrTab
130130

@@ -134,7 +134,7 @@ end
134134

135135
################################# Utilities ####################################
136136

137-
typealias SectionOrRef{T} Union(Section{T},SectionRef{T})
137+
typealias SectionOrRef{T} Union{Section{T},SectionRef{T}}
138138

139139
sectionsize(sect::SectionRef) = sectionsize(deref(sect))
140140
sectionoffset(sect::SectionRef) = sectionoffset(deref(sect))
@@ -151,7 +151,7 @@ function readbytes{T<:ObjectHandle,S}(oh::T,sec::Section{S})
151151
end
152152
readbytes(sec::SectionRef) = readbytes(handle(sec),deref(sec))
153153

154-
typealias Maybe{T} Union(T,Nothing)
154+
typealias Maybe{T} Union{T,Void}
155155

156156
# # # Higher level debug info support
157157
immutable DebugSections{T<:ObjectHandle, Sect}
@@ -294,7 +294,7 @@ function readmeta(io::IO)
294294
""")
295295
end
296296

297-
readmeta(file::String) = readmeta(open(file,"r"))
297+
readmeta(file::AbstractString) = readmeta(open(file,"r"))
298298

299299
read{T<:ObjectHandle}(oh::T, args...) = read(oh.io,args...)
300300

0 commit comments

Comments
 (0)