From 201f091daa675b38ba53f8b0aad1115dc735bc77 Mon Sep 17 00:00:00 2001 From: zvolin Date: Thu, 19 Dec 2024 14:51:18 +0100 Subject: [PATCH] fix blob shares_len doctest --- types/src/blob.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/src/blob.rs b/types/src/blob.rs index 9ad2ff30..9dbdea7b 100644 --- a/types/src/blob.rs +++ b/types/src/blob.rs @@ -317,10 +317,10 @@ impl Blob { /// # use celestia_types::nmt::Namespace; /// # let namespace = Namespace::new_v0(&[1, 2, 3, 4, 5]).expect("Invalid namespace"); /// - /// let blob = Blob::new(namespace1, b"foo".to_vec(), AppVersion::V3).unwrap(); + /// let blob = Blob::new(namespace, b"foo".to_vec(), AppVersion::V3).unwrap(); /// let shares_len = blob.shares_len(); /// - /// let blob_shares = blob.to_shares(); + /// let blob_shares = blob.to_shares().unwrap(); /// /// assert_eq!(shares_len, blob_shares.len()); /// ```