From 257df3af5fbd26394f34fb80126a9deadf6a53e4 Mon Sep 17 00:00:00 2001 From: Stephen Turley Date: Tue, 2 Apr 2024 21:46:20 -0400 Subject: [PATCH] Changed the order of arguments for the Arc gizmo docs (#12854) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just updating docs for the arc gizmo so that the argument documentation matches the order of the function arguments. Also added docs for the color argument. # Objective - Improve docs ## Solution - Moved the radius argument to the end of the argument list to match the function --- ## Changelog > N/A ## Migration Guide > N/A --------- Co-authored-by: François Mockers --- crates/bevy_gizmos/src/arcs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_gizmos/src/arcs.rs b/crates/bevy_gizmos/src/arcs.rs index 9f9181afe7..0c2835c9fb 100644 --- a/crates/bevy_gizmos/src/arcs.rs +++ b/crates/bevy_gizmos/src/arcs.rs @@ -18,10 +18,11 @@ impl<'w, 's, T: GizmoConfigGroup> Gizmos<'w, 's, T> { /// /// # Arguments /// - `position` sets the center of this circle. - /// - `radius` controls the distance from `position` to this arc, and thus its curvature. /// - `direction_angle` sets the clockwise angle in radians between `Vec2::Y` and /// the vector from `position` to the midpoint of the arc. /// - `arc_angle` sets the length of this arc, in radians. + /// - `radius` controls the distance from `position` to this arc, and thus its curvature. + /// - `color` sets the color to draw the arc. /// /// # Example /// ```