From 9d1c96ed0e6b90e6fd594b4a35b056b45758aaf5 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 15 Jan 2023 13:20:36 -0700 Subject: [PATCH] gpu: improve SupportedLimits query example `supported` is a better variable name because `supported.limits.foobar` is the actual way it need be referenced, and `limits.limits.foobar` would be redundant. Signed-off-by: Stephen Gutekanst --- libs/gpu/src/types.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/gpu/src/types.zig b/libs/gpu/src/types.zig index 9a917fa6..4f3b258a 100644 --- a/libs/gpu/src/types.zig +++ b/libs/gpu/src/types.zig @@ -740,8 +740,8 @@ pub const RequiredLimits = extern struct { /// Used to query limits from a Device or Adapter. Can be used as follows: /// /// ``` -/// var limits: gpu.SupportedLimits = .{}; -/// if (!adapter.getLimits(&limits)) @panic("unsupported options"); +/// var supported: gpu.SupportedLimits = .{}; +/// if (!adapter.getLimits(&supported)) @panic("unsupported options"); /// ``` /// /// Note that `getLimits` can only fail if `next_in_chain` options are invalid.