From e165d8c719d643d91c52725ad27da863e7e79215 Mon Sep 17 00:00:00 2001 From: Joacim Magnusson Date: Sun, 3 Dec 2023 22:23:49 +0100 Subject: [PATCH] Correct outdated line in surface tutorial --- docs/beginner/tutorial2-surface/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/beginner/tutorial2-surface/README.md b/docs/beginner/tutorial2-surface/README.md index 6f0158c4..9a81f62f 100644 --- a/docs/beginner/tutorial2-surface/README.md +++ b/docs/beginner/tutorial2-surface/README.md @@ -162,7 +162,7 @@ The `limits` field describes the limit of certain types of resources that we can // sRGB surfaces, you'll need to account for that when drawing to the frame. let surface_format = surface_caps.formats.iter() .copied() - .filter(|f| f.describe().srgb) + .filter(|f| f.is_srgb()) .next() .unwrap_or(surface_caps.formats[0]); let config = wgpu::SurfaceConfiguration {