From 7559377e5cead63c42cbec3f3d0f3411c3730300 Mon Sep 17 00:00:00 2001 From: pgherveou Date: Fri, 5 Jan 2024 23:11:06 +0100 Subject: [PATCH] Fix doc --- crates/storage/src/lazy/vec.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/storage/src/lazy/vec.rs b/crates/storage/src/lazy/vec.rs index 9b44798d19c..62c2edb33da 100644 --- a/crates/storage/src/lazy/vec.rs +++ b/crates/storage/src/lazy/vec.rs @@ -403,9 +403,10 @@ where /// * `Ok(Some(_))` if the value was inserted successfully, containing the size in /// bytes of the pre-existing value at the specified key if any. /// * `Ok(None)` if the insert was successful but there was no pre-existing value. - /// * Err([ink_env::Error::BufferTooSmall]) if the encoded value exceeds the static - /// buffer size - /// * Err([ink_env::Error::KeyNotFound]) if the `index` is out of bounds. + /// * Err([ink_env::Error::ReturnError]([ink_env::ReturnErrorCode::BufferTooSmall])) + /// if the encoded value exceeds the static buffer size + /// * Err([ink_env::Error::ReturnError]([ink_env::ReturnErrorCode::KeyNotFound])) if + /// the `index` is out of bounds. /// /// # Panics ///