Skip to content

Commit b2fbbb6

Browse files
authored
fix(corelib): correct append_byte documentation example
1 parent 841869e commit b2fbbb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

corelib/src/byte_array.cairo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ pub impl ByteArrayImpl of ByteArrayTrait {
178178
///
179179
/// ```
180180
/// let mut ba = "";
181-
/// ba.append_byte(0);
182-
/// assert!(ba == "0");
181+
/// ba.append_byte(0x41); // Appending a single byte 'A'
182+
/// assert!(ba == "A");
183183
/// ```
184184
fn append_byte(ref self: ByteArray, byte: u8) {
185185
if self.pending_word_len == 0 {

0 commit comments

Comments
 (0)