From 75457202d4d808da72015bf1c942255883236416 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 11 Apr 2026 08:36:39 -0700 Subject: [PATCH] langref: deprecate `@intFromFloat` and add documentation for new semantics of `@round`, `@ceil`, `@floor`, and `@trunc`. follows #30906 relates #31602 --- doc/langref.html.in | 89 ++++++++++++++++++++++----------------------- 1 file changed, 43 insertions(+), 46 deletions(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index a084a57825..9f32e05896 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -3582,12 +3582,10 @@ void do_a_thing(struct Foo *foo) { {#header_close#} {#header_open|Explicit Casts#} -

- Explicit casts are performed via {#link|Builtin Functions#}. - Some explicit casts are safe; some are not. - Some explicit casts perform language-level assertions; some do not. - Some explicit casts are no-ops at runtime; some are not. -

+

Explicit casts are performed via {#link|Builtin Functions#}.

+

Some explicit casts can violate type safety when used incorrectly.

+

Some explicit casts perform language-level assertions.

+

Some explicit casts are no-ops at runtime.