| author | |
| committer | |
| log | ac3d9759ed6d28bb2fcb6f6f596e28ae5dae8969 |
| tree | a7ab051300fd86d9bc8e3fc6001ad8cff1daa413 |
| parent | 922d33e5b9195587afa4e97cd60c0af0212938bd |
1 files changed, 5 insertions(+), 0 deletions(-)
doc/langref.html.in+5| ... | ... | @@ -3159,7 +3159,12 @@ test "linked list" { |
| 3159 | 3159 | .last = &node, |
| 3160 | 3160 | .len = 1, |
| 3161 | 3161 | }; |
| 3162 | ||
| 3163 | // When using a pointer to a struct, fields can be accessed directly, | |
| 3164 | // without explicitly dereferencing the pointer. | |
| 3165 | // So you can do | |
| 3162 | 3166 | try expect(list2.first.?.data == 1234); |
| 3167 | // instead of try expect(list2.first.?.*.data == 1234); | |
| 3163 | 3168 | } |
| 3164 | 3169 | {#code_end#} |
| 3165 | 3170 |