ziglang/ziglang.org
14
29
Fork
You've already forked ziglang.org
31

Documentation for v0.16.0 seems out of sync with zig source #631

Open
opened 2026年06月20日 12:34:56 +02:00 by devansh08 · 0 comments

Looking at the documentation available for @intFromFloat, as an example, the website mentions:

Converts the integer part of a floating point number to the inferred result type.
If the integer part of the floating point number cannot fit in the destination type, it invokes safety-checked Illegal Behavior.

But the doc/langref.html.in from the zig source code at 0.16.0 tag mentions this builtin function as deprecated instead. What is shown on the website does match the zig source code at 0.15.2 tag, which makes me think some (at least this builtin function) parts of the docs of 0.16.0 are out of sync.

Do let me know if I'm missing something here.

Looking at the documentation available for `@intFromFloat`, as an example, the [website mentions](https://ziglang.org/documentation/0.16.0/#intFromFloat): ``` Converts the integer part of a floating point number to the inferred result type. If the integer part of the floating point number cannot fit in the destination type, it invokes safety-checked Illegal Behavior. ``` But the `doc/langref.html.in` from the zig source code at [0.16.0 tag](https://codeberg.org/ziglang/zig/src/commit/24fdd5b7a4c1c8b5deb5b56756b9dbc8e08c86a8/doc/langref.html.in#L5138) mentions this builtin function as deprecated instead. What is shown on the website does match the zig source code at [0.15.2 tag](https://codeberg.org/ziglang/zig/src/commit/e4cbd752c8c05f131051f8c873cff7823177d7d3/doc/langref.html.in#L5059), which makes me think some (at least this builtin function) parts of the docs of 0.16.0 are out of sync. Do let me know if I'm missing something here.
Sign in to join this conversation.
No Branch/Tag specified
main
release-0.16.0
apraga/french
homersimpsons/fix/mobile-responsiveness
MarkLagodych/patch-1
Zirunis/patch-1
zmitchell/zmitchell/build-graph-docs
generalmimon/fix-unit-testing-examples
generalmimon/fix-code-snippet-in-0.15.1-relnotes
TheConnorJohnson/main
meeting-minutes
enkvadrat/update-curl-example
No results found.
Labels
Clear labels
bounty
https://ziglang.org/news/announcing-donor-bounties
bug
Observed behavior contradicts documented or intended behavior.
contributor-friendly
This issue is limited in scope and/or knowledge of project internals.
downstream
An issue with a third-party project that uses this project.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
infra
An issue related to project infrastructure, e.g. continuous integration.
optimization
A task to improve performance and/or resource usage.
question
No questions on the issue tracker; use a community space instead.
regression
Something that used to work in a previous version stopped working
upstream
An issue with a third-party project that this project uses.
use case
Describes a real use case that is difficult or impossible, but does not propose a solution.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ziglang/ziglang.org#631
Reference in a new issue
ziglang/ziglang.org
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?