Skip to content

Commit

Permalink
fix doc syntax of Channel
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Feb 27, 2020
1 parent f0636b2 commit e0965dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base/channels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Other constructors:
* `Channel(sz)`: equivalent to `Channel{Any}(sz)`
!!! compat "Julia 1.3"
The default constructor `Channel()` and default `size=0` were added in Julia 1.3.
The default constructor `Channel()` and default `size=0` were added in Julia 1.3.
"""
mutable struct Channel{T} <: AbstractChannel{T}
cond_take::Threads.Condition # waiting for data to become available
Expand Down Expand Up @@ -108,9 +108,9 @@ true
```
!!! compat "Julia 1.3"
The `spawn=` parameter was added in Julia 1.3. This constructor was added in Julia 1.3.
In earlier versions of Julia, Channel used keyword arguments to set `size` and `T`, but
those constructors are deprecated.
The `spawn=` parameter was added in Julia 1.3. This constructor was added in Julia 1.3.
In earlier versions of Julia, Channel used keyword arguments to set `size` and `T`, but
those constructors are deprecated.
```jldoctest
julia> chnl = Channel{Char}(1, spawn=true) do ch
Expand Down

0 comments on commit e0965dd

Please sign in to comment.