diff --git a/docs/beginner/tutorial2-surface/README.md b/docs/beginner/tutorial2-surface/README.md index 6f0158c45..9a81f62f6 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 {