zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ee122643872b2a5958233cfeb24172c181d10be6 (tree)
parent ae8d26a6a00a528bdf555689c2a93cb35a3287f2
Author: Henrique Dante de Almeida <hdante@gmail.com>
Date:   Sat, 27 Aug 2022 11:44:05 -0300

docs: Remove mention of type inference on anytype struct fields

It was removed from the language.

Diffstat:
Mdoc/langref.html.in | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/langref.html.in b/doc/langref.html.in @@ -11793,8 +11793,8 @@ fn readU32Be() u32 {} <pre>{#syntax#}anytype{#endsyntax#}</pre> </th> <td> - Function parameters and struct fields can be declared with {#syntax#}anytype{#endsyntax#} in place of the type. - The type will be inferred where the function is called or the struct is instantiated. + Function parameters can be declared with {#syntax#}anytype{#endsyntax#} in place of the type. + The type will be inferred where the function is called. <ul> <li>See also {#link|Function Parameter Type Inference#}</li> </ul>