diff options
| -rw-r--r-- | doc/langref.html.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index 825d03899e..40c2e431a3 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -3159,7 +3159,12 @@ test "linked list" { .last = &node, .len = 1, }; + + // When using a pointer to a struct, fields can be accessed directly, + // without explicitly dereferencing the pointer. + // So you can do try expect(list2.first.?.data == 1234); + // instead of try expect(list2.first.?.*.data == 1234); } {#code_end#} |
