From 13b2a8a4a06ae306819d3d790906435e5f247ae5 Mon Sep 17 00:00:00 2001 From: hongmengning Date: Wed, 11 Sep 2024 22:37:05 +0800 Subject: [PATCH] Complete the missing backticks in the comments (#2469) --- candle-core/src/indexer.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/candle-core/src/indexer.rs b/candle-core/src/indexer.rs index a645d8b195..2bfaf94746 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()]) }