Update Ui Style accessor function doc safety
@@ -173,8 +173,12 @@ impl<'ui> Ui<'ui> {
pub fn style_color(&self, style_color: StyleColor) -> [f32; 4] {
self.ctx.style()[style_color]
}
- /// Returns a shared reference to the current [`Style`]. This function is tagged as `unsafe`
- /// because pushing via [`push_style_color`](crate::Ui::push_style_color) or
+ /// Returns a shared reference to the current [`Style`].
+ ///
+ /// ## Safety
+ ///
+ /// This function is tagged as `unsafe` because pushing via
+ /// [`push_style_color`](crate::Ui::push_style_color) or
/// [`push_style_var`](crate::Ui::push_style_var) or popping via
/// [`ColorStackToken::pop`](crate::ColorStackToken::pop) or
/// [`StyleStackToken::pop`](crate::StyleStackToken::pop) will modify the values in the returned
