Skip to content

Commit

Permalink
Simplify default Channel() constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly authored Jul 14, 2019
1 parent 8361a27 commit 83b80e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/channels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Representation of a channel passing objects of type `T`.
abstract type AbstractChannel{T} end

"""
Channel{T}(sz::Int=0)
Channel{T}(sz::Int = 0)
Constructs a `Channel` with an internal buffer that can hold a maximum of `sz` objects
of type `T`.
Expand Down Expand Up @@ -52,7 +52,7 @@ function Channel{T}(sz::Float64) where T
return Channel{T}(sz)
end
Channel(sz) = Channel{Any}(sz)
Channel() = Channel{Any}(0)
Channel() = Channel{Any}()

# special constructors
"""
Expand Down

0 comments on commit 83b80e6

Please sign in to comment.