Skip to content

Commit

Permalink
Merge branch 'main' into immutable-vec
Browse files Browse the repository at this point in the history
  • Loading branch information
jialunzhang-psu committed Jan 8, 2025
2 parents 10271ec + 8035473 commit 2534c7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buffer/buffer.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ pub(all) typealias Buffer = T
/// let buf = @buffer.new(size_hint=100)
/// buf.write_string("Tes")
/// buf.write_char('t')
/// assert_eq!(buf.to_unchecked_string(), "Test")
/// inspect!(buf.contents(), content=
/// #|b"\x54\x00\x65\x00\x73\x00\x74\x00"
/// )
/// ```
struct T {
mut data : FixedArray[Byte]
Expand Down

0 comments on commit 2534c7f

Please sign in to comment.