Repository navigation
Add documentation and make Std.C.from_string Fail when the string contains \0 - #294
Merged
Merged
Conversation
added 2 commits
December 2, 2026 17:10
(Could use some more examples like in `Mutex` but it's at least a lot better XD)
Contributor
Author
|
The tests were not passing, but then I ran the tests on a fresh clone of Ante and those are the tests that are failing. The code I wrote didn't affect the results of any fails |
jfecher
reviewed
Dec 2, 2026
jfecher
left a comment
Owner
There was a problem hiding this comment.
Looks good, thanks for the doc help and the examples!
Can you just edit from_string with the one suggestion I added there? Then this should be all set.
Co-authored-by: jfecher <jfecher11@gmail.com>
jfecher
previously approved these changes
Dec 2, 2026
jfecher
approved these changes
Dec 2, 2026
jfecher
added a commit
that referenced
this pull request
Dec 2, 2026
…ontains \0 (#294) * Fix: from_string now crashes on any additional \0 that has been added * Add some documentation. (Could use some more examples like in `Mutex` but it's at least a lot better XD) * More precise statement * Apply batched suggestions from code review Co-authored-by: jfecher <jfecher11@gmail.com> * FIX: `from_string`'s String can now hold a \0 if it's at the very end * Update stdlib/src/C.an * Update stdlib/src/C.an * Update stdlib/src/C.an --------- Co-authored-by: FlameyosSnowy <flamesflowsnow@gmail.com> Co-authored-by: jfecher <jfecher11@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added documentation to read_file_bytes, read_file, gcd, lcm, Arc and Mutex.
Std.C.from_stringnow fails when the string contains \0 and has a new effect which isFail(all usages in the standard libraryFailanyway so not that bad(?) of a breaking change)