Skip to content

Commit 97cb274

Browse files
authored
fix(corelib): correct append_byte documentation example (#8765)
1 parent f994d32 commit 97cb274

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('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)