From e0965dd095b83f34f23489234db35031f0308a0c Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki Date: Fri, 28 Feb 2020 01:38:46 +0900 Subject: [PATCH] fix doc syntax of `Channel` --- base/channels.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base/channels.jl b/base/channels.jl index f3b53188a791f..82d77b81a3325 100644 --- a/base/channels.jl +++ b/base/channels.jl @@ -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 @@ -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