Skip to content

Commit fcc02eb

Browse files
TheAlizabethaetter
andauthored
Add clarification to buffer.create (#1237)
## Changes Specifies the size format. ## Validation The size format is never specified, I figured the following from my own tests. Negative integer: Error while creating buffer. Positive double: The number is floored, and the extra bits are ignored. ## Checks By submitting your pull request for review, you agree to the following: - [X] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [X] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [X] To the best of my knowledge, all proposed changes are accurate. --------- Co-authored-by: Andrew Etter <[email protected]>
1 parent 205fc1f commit fcc02eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en-us/reference/engine/libraries/buffer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ functions:
4747
type: number
4848
default:
4949
summary: |
50-
Size of the buffer.
50+
Size of the buffer in bytes. Must be a positive integer.
5151
returns:
5252
- type: buffer
5353
summary: ''

0 commit comments

Comments
 (0)