Skip to content

Commit

Permalink
Update typealias to a const
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Mar 15, 2017
1 parent cacac89 commit b7ea496
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Olson.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ type Rule
end
end

typealias ZoneDict Dict{AbstractString,Array{Zone}}
typealias RuleDict Dict{AbstractString,Array{Rule}}
typealias OrderedRuleDict Dict{AbstractString,Tuple{Array{Date},Array{Rule}}}
const ZoneDict = Dict{AbstractString,Array{Zone}}
const RuleDict = Dict{AbstractString,Array{Rule}}
const OrderedRuleDict = Dict{AbstractString,Tuple{Array{Date},Array{Rule}}}

# Min and max years that we create DST transition DateTimes for (inclusive)
const MIN_YEAR = year(typemin(DateTime)) # Essentially the begining of time
Expand Down
2 changes: 1 addition & 1 deletion test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Base.isequal(a::Array{Expr}, b::Array{Expr}) = map(strip, a) == map(strip, b)
],
)

typealias I Integer
const I = Integer
@test isequal(
optional(
:(function ZonedDateTime(y::I, m::I=1, d::I=1, h::I=0, mi::I=0, s::I=0, ms::I=0, tz::TimeZone)
Expand Down

0 comments on commit b7ea496

Please sign in to comment.