From c8450d862f0e2653011f68118daecfe12b398c90 Mon Sep 17 00:00:00 2001 From: Pablo San-Jose Date: Tue, 4 Sep 2018 12:24:29 +0200 Subject: [PATCH] CartesianIndices and LinearIndices docstring (#29023) --- base/indices.jl | 2 +- base/multidimensional.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/indices.jl b/base/indices.jl index 800280c90f57e..dce053872bd1a 100644 --- a/base/indices.jl +++ b/base/indices.jl @@ -355,7 +355,7 @@ julia> extrema(b) LinearIndices(inds::CartesianIndices) -> R LinearIndices(sz::Dims) -> R - LinearIndices(istart:istop, jstart:jstop, ...) -> R + LinearIndices((istart:istop, jstart:jstop, ...)) -> R Return a `LinearIndices` array with the specified shape or [`axes`](@ref). diff --git a/base/multidimensional.jl b/base/multidimensional.jl index 4677e8649a680..1a78b84c1e6a3 100644 --- a/base/multidimensional.jl +++ b/base/multidimensional.jl @@ -156,7 +156,7 @@ module IteratorsMD # Iteration """ CartesianIndices(sz::Dims) -> R - CartesianIndices(istart:istop, jstart:jstop, ...) -> R + CartesianIndices((istart:istop, jstart:jstop, ...)) -> R Define a region `R` spanning a multidimensional rectangular range of integer indices. These are most commonly encountered in the