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 {