diff --git a/candle-core/src/indexer.rs b/candle-core/src/indexer.rs index a645d8b1..2bfaf947 100644 --- a/candle-core/src/indexer.rs +++ b/candle-core/src/indexer.rs @@ -167,6 +167,7 @@ where /// [4., 5.] /// ]); /// # Ok::<(), candle_core::Error>(()) + /// ``` fn i(&self, index: T) -> Result { self.index(&[index.into()]) } @@ -202,6 +203,7 @@ where /// [4., 5.] /// ]); /// # Ok::<(), candle_core::Error>(()) + /// ``` fn i(&self, (a,): (A,)) -> Result { self.index(&[a.into()]) } @@ -227,6 +229,7 @@ where /// assert_eq!(c.shape().dims(), &[2]); /// assert_eq!(c.to_vec1::()?, &[1., 4.]); /// # Ok::<(), candle_core::Error>(()) + /// ``` fn i(&self, (a, b): (A, B)) -> Result { self.index(&[a.into(), b.into()]) }