Fix type comment for Elements. The comment for Elements had the wrong value returned in the case of no type information. Change-Id: Ifca53a70ac57f60ebec891085498758f5c72ac14 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/334196 Commit-Queue: dan sinclair <dsinclair@chromium.org> Auto-Submit: dan sinclair <dsinclair@chromium.org> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: James Price <jrprice@google.com>
diff --git a/src/tint/lang/core/type/type.h b/src/tint/lang/core/type/type.h index d2960dc..d7da1de 100644 --- a/src/tint/lang/core/type/type.h +++ b/src/tint/lang/core/type/type.h
@@ -206,8 +206,8 @@ /// Examples: /// * Elements() of `array<vec3<f32>, 5>` returns `[vec3<f32>, 5]`. /// * Elements() of `array<f32>` returns `[f32, count_if_invalid]`. - /// * Elements() of `struct S { a : f32, b : i32 }` returns `[count_if_invalid, 2]`. - /// * Elements() of `struct S { a : i32, b : i32 }` also returns `[count_if_invalid, 2]`. + /// * Elements() of `struct S { a : f32, b : i32 }` returns `[type_if_invalid, 2]`. + /// * Elements() of `struct S { a : i32, b : i32 }` also returns `[type_if_invalid, 2]`. virtual TypeAndCount Elements(const Type* type_if_invalid = nullptr, uint32_t count_if_invalid = 0) const;