authorgravatar for 1269283+KurtWagner@users.noreply.github.comKurt Wagner <1269283+KurtWagner@users.noreply.github.com> 2025-07-02 18:25:57+10:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-07-30 10:02:41+01:00
log135a34c9631254d43b37be6c7b41d56669960669
treeb68bd9128dc428a3430c08177dbc20fe72b50016
parent4a1594fbdebfeae989ff7c74be737b4879e1916e

Update doc comment for `ptr_type` and `ptr_type_bit_range` to `data` of `.extra_and_node`

The other pointer types are `.opt_node_and_node` but `ptr_type` and `ptr_type_bit_range` contain `.extra_and_node` in their `data` field

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/zig/Ast.zig+2-2
......@@ -3361,7 +3361,7 @@ pub const Node = struct {
33613361 /// The `main_token` might be a ** token, which is shared with a
33623362 /// parent/child pointer type and may require special handling.
33633363 ptr_type_sentinel,
3364 /// The `data` field is a `.opt_node_and_node`:
3364 /// The `data` field is a `.extra_and_node`:
33653365 /// 1. a `ExtraIndex` to `PtrType`.
33663366 /// 2. a `Node.Index` to the element type expression.
33673367 ///
......@@ -3370,7 +3370,7 @@ pub const Node = struct {
33703370 /// The `main_token` might be a ** token, which is shared with a
33713371 /// parent/child pointer type and may require special handling.
33723372 ptr_type,
3373 /// The `data` field is a `.opt_node_and_node`:
3373 /// The `data` field is a `.extra_and_node`:
33743374 /// 1. a `ExtraIndex` to `PtrTypeBitRange`.
33753375 /// 2. a `Node.Index` to the element type expression.
33763376 ///