diff --git a/doc/langref.html.in b/doc/langref.html.in index d11204f619..02375639fb 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -6867,6 +6867,16 @@ fn add(a: i32, b: i32) i32 { return a + b; } It does not include functions, variables, or constants.
{#header_close#} + {#header_open|@hasField#} +{#syntax#}@hasField(comptime T: type, comptime name: []u8) bool{#endsyntax#}
+ Returns if the field name of a struct, union, or enum exists.
++ The result is a compile time constant. +
++ It does not include functions, variables, constants. +
+ {#header_close#} {#header_open|@memberType#}{#syntax#}@memberType(comptime T: type, comptime index: usize) type{#endsyntax#}
Returns the field type of a struct or union.