Skip to content

Commit 135a34c

Browse files
KurtWagnermlugg
authored andcommitted
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 parent 4a1594f commit 135a34c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/zig/Ast.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
///

0 commit comments

Comments
 (0)