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
This commit is contained in:
Kurt Wagner 2025-07-02 18:25:57 +10:00 committed by Matthew Lugg
parent 4a1594fbde
commit 135a34c963

View file

@ -3361,7 +3361,7 @@ pub const Node = struct {
/// The `main_token` might be a ** token, which is shared with a /// The `main_token` might be a ** token, which is shared with a
/// parent/child pointer type and may require special handling. /// parent/child pointer type and may require special handling.
ptr_type_sentinel, 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`. /// 1. a `ExtraIndex` to `PtrType`.
/// 2. a `Node.Index` to the element type expression. /// 2. a `Node.Index` to the element type expression.
/// ///
@ -3370,7 +3370,7 @@ pub const Node = struct {
/// The `main_token` might be a ** token, which is shared with a /// The `main_token` might be a ** token, which is shared with a
/// parent/child pointer type and may require special handling. /// parent/child pointer type and may require special handling.
ptr_type, ptr_type,
/// The `data` field is a `.opt_node_and_node`: /// The `data` field is a `.extra_and_node`:
/// 1. a `ExtraIndex` to `PtrTypeBitRange`. /// 1. a `ExtraIndex` to `PtrTypeBitRange`.
/// 2. a `Node.Index` to the element type expression. /// 2. a `Node.Index` to the element type expression.
/// ///