| ... | @@ -4888,8 +4888,8 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val | ... | @@ -4888,8 +4888,8 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val |
| 4888 | {#header_open|@fieldParentPtr#} | 4888 | {#header_open|@fieldParentPtr#} |
| 4889 | <pre>{#syntax#}@fieldParentPtr(comptime field_name: []const u8, field_ptr: *T) anytype{#endsyntax#}</pre> | 4889 | <pre>{#syntax#}@fieldParentPtr(comptime field_name: []const u8, field_ptr: *T) anytype{#endsyntax#}</pre> |
| 4890 | <p> | 4890 | <p> |
| 4891 | Given a pointer to a struct field, returns a pointer to the struct containing that field. | 4891 | Given a pointer to a struct or union field, returns a pointer to the struct or union containing that field. |
| 4892 | The return type (and struct in question) is the inferred result type. | 4892 | The return type (pointer to the parent struct or union in question) is the inferred result type. |
| 4893 | </p> | 4893 | </p> |
| 4894 | <p> | 4894 | <p> |
| 4895 | If {#syntax#}field_ptr{#endsyntax#} does not point to the {#syntax#}field_name{#endsyntax#} field of an instance of | 4895 | If {#syntax#}field_ptr{#endsyntax#} does not point to the {#syntax#}field_name{#endsyntax#} field of an instance of |