From 949aca76dae56b51599bc0f4a90dcf704ae8fcf5 Mon Sep 17 00:00:00 2001 From: bluss Date: Mon, 3 Apr 2017 23:22:29 +0200 Subject: [PATCH] ixdyn: Update Default for Array documentation for IxDyn change --- src/arraytraits.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/arraytraits.rs b/src/arraytraits.rs index ec069dbb2..4968c63be 100644 --- a/src/arraytraits.rs +++ b/src/arraytraits.rs @@ -304,9 +304,11 @@ impl<'a, A: 'a, D, T> AsArray<'a, A, D> for T /// /// The array is created with dimension `D::default()`, which results /// in for example dimensions `0` and `(0, 0)` with zero elements for the -/// one-dimensional and two-dimensional cases respectively, while for example -/// the zero dimensional case uses `()` (or `Vec::new()`) which -/// results in an array with one element. +/// one-dimensional and two-dimensional cases respectively. +/// +/// The default dimension for `IxDyn` is `IxDyn(&[0])` (array has zero +/// elements). And the default for the dimension `()` is `()` (array has +/// one element). /// /// Since arrays cannot grow, the intention is to use the default value as /// placeholder.