From 997e3c2f6eea7916631b4c34a15934881f94593a Mon Sep 17 00:00:00 2001 From: Sebastian <159052459+sewqasreedas@users.noreply.github.com> Date: Wed, 26 Nov 2025 09:57:59 +0100 Subject: [PATCH] fix(corelib): correct append_byte documentation example --- corelib/src/byte_array.cairo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corelib/src/byte_array.cairo b/corelib/src/byte_array.cairo index 1dfb35b3e8f..a1c0fff9188 100644 --- a/corelib/src/byte_array.cairo +++ b/corelib/src/byte_array.cairo @@ -178,8 +178,8 @@ pub impl ByteArrayImpl of ByteArrayTrait { /// /// ``` /// let mut ba = ""; - /// ba.append_byte(0); - /// assert!(ba == "0"); + /// ba.append_byte('A'); + /// assert!(ba == "A"); /// ``` fn append_byte(ref self: ByteArray, byte: u8) { if self.pending_word_len == 0 {