From 335109f724559a90516b51a2dbcf319e0641494e Mon Sep 17 00:00:00 2001 From: Dworv <88643996+Dworv@users.noreply.github.com> Date: Sun, 30 Jul 2023 08:29:04 -0700 Subject: [PATCH] Update docs for scaling_mode field of Orthographic projection (#9297) # Objective This PR updates the name of the enum variant used in the docs for `OrthographicProjection`. ## Solution - Change the outdated 'WindowScale` to `WindowSize`. --- crates/bevy_render/src/camera/projection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/src/camera/projection.rs b/crates/bevy_render/src/camera/projection.rs index 73e3d6a431..7b62385cac 100644 --- a/crates/bevy_render/src/camera/projection.rs +++ b/crates/bevy_render/src/camera/projection.rs @@ -227,7 +227,7 @@ pub struct OrthographicProjection { pub viewport_origin: Vec2, /// How the projection will scale when the viewport is resized. /// - /// Defaults to `ScalingMode::WindowScale(1.0)` + /// Defaults to `ScalingMode::WindowSize(1.0)` pub scaling_mode: ScalingMode, /// Scales the projection in world units. ///