1
0
mirror of https://github.com/janet-lang/janet synced 2025-02-19 01:50:01 +00:00

Update docs for buffer/push-word

Should be little endian, not big endian.
This commit is contained in:
Calvin Rose 2020-03-01 12:05:24 -06:00
parent b17bf259f7
commit 2349ea9405

View File

@ -387,7 +387,7 @@ static const JanetReg buffer_cfuns[] = {
"buffer/push-word", cfun_buffer_word, "buffer/push-word", cfun_buffer_word,
JDOC("(buffer/push-word buffer x)\n\n" JDOC("(buffer/push-word buffer x)\n\n"
"Append a machine word to a buffer. The 4 bytes of the integer are appended " "Append a machine word to a buffer. The 4 bytes of the integer are appended "
"in twos complement, big endian order, unsigned. Returns the modified buffer. Will " "in twos complement, little endian order, unsigned. Returns the modified buffer. Will "
"throw an error if the buffer overflows.") "throw an error if the buffer overflows.")
}, },
{ {