From ca370ce6d04b23872194a2e38e526217aba786e8 Mon Sep 17 00:00:00 2001 From: Kurt Wagner <1269283+KurtWagner@users.noreply.github.com> Date: Wed, 2 Jul 2025 18:25:57 +1000 Subject: [PATCH] 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 --- lib/std/zig/Ast.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/zig/Ast.zig b/lib/std/zig/Ast.zig index d0e819e943e8..07155199639c 100644 --- a/lib/std/zig/Ast.zig +++ b/lib/std/zig/Ast.zig @@ -3341,7 +3341,7 @@ pub const Node = struct { /// The `main_token` might be a ** token, which is shared with a /// parent/child pointer type and may require special handling. ptr_type_sentinel, - /// The `data` field is a `.opt_node_and_node`: + /// The `data` field is a `.extra_and_node`: /// 1. a `ExtraIndex` to `PtrType`. /// 2. a `Node.Index` to the element type expression. /// @@ -3350,7 +3350,7 @@ pub const Node = struct { /// The `main_token` might be a ** token, which is shared with a /// parent/child pointer type and may require special handling. ptr_type, - /// The `data` field is a `.opt_node_and_node`: + /// The `data` field is a `.extra_and_node`: /// 1. a `ExtraIndex` to `PtrTypeBitRange`. /// 2. a `Node.Index` to the element type expression. ///