List.concat -> List.append

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2024-02-23 14:21:43 +01:00 committed by GitHub
parent af389a9792
commit 67cfe7ece0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,8 @@ EncoderFormatting implements
##
## ```
## expect
## customEncoder = Encode.custom (\bytes, _fmt -> List.concat bytes [42]) # Appends the byte 42 to the list
## # Appends the byte 42
## customEncoder = Encode.custom (\bytes, _fmt -> List.append bytes 42)
##
## actual = Encode.appendWith [] customEncoder Core.json
## expected = [42] # Expected result is a list with a single byte, 42