From 1528e95f54d1746194c0c58dcc407a26eef25e04 Mon Sep 17 00:00:00 2001 From: Valentino Cerutti Date: Wed, 9 Oct 2024 16:47:59 -0300 Subject: [PATCH] Fixes examples from `from_int_little_endian` documentation --- lib/aiken/primitive/bytearray.ak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/aiken/primitive/bytearray.ak b/lib/aiken/primitive/bytearray.ak index e5fb4d0..b1759f1 100644 --- a/lib/aiken/primitive/bytearray.ak +++ b/lib/aiken/primitive/bytearray.ak @@ -48,10 +48,10 @@ test from_int_big_endian_4() fail { /// > size is _too large_, the array is right-padded with zeroes. /// /// ```aiken -/// bytearray.from_int_big_endian(1_000_000, 3) == #"0f4240" -/// bytearray.from_int_big_endian(1_000_000, 5) == #"00000f4240" -/// bytearray.from_int_big_endian(0, 8) == #"0000000000000000" -/// bytearray.from_int_big_endian(1_000_000, 1) => 💥 +/// bytearray.from_int_little_endian(1_000_000, 3) == #"40420f" +/// bytearray.from_int_little_endian(1_000_000, 5) == #"40420f0000" +/// bytearray.from_int_little_endian(0, 8) == #"0000000000000000" +/// bytearray.from_int_little_endian(1_000_000, 1) => 💥 /// ``` pub fn from_int_little_endian(self: Int, size: Int) -> ByteArray { builtin.integer_to_bytearray(False, size, self)