Skip to content

Commit

Permalink
Merge pull request #34899 from aviatesk/avi/fixdocsyntax
Browse files Browse the repository at this point in the history
fix doc syntax of `Channel`
  • Loading branch information
kshyatt authored Feb 27, 2020
2 parents f0636b2 + e0965dd commit aad9664
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 aad9664

Please sign in to comment.