Fix UI doc test

Max Brunsfeld created

Change summary

crates/ui/src/styled_ext.rs            | 6 +++---
crates/ui/src/utils/format_distance.rs | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)

Detailed changes

crates/ui/src/styled_ext.rs 🔗

@@ -78,7 +78,7 @@ pub trait StyledExt: Styled + Sized {
         self.text_size(settings.buffer_font_size(cx))
     }
 
-    /// The [`Surface`](ui2::ElevationIndex::Surface) elevation level, located above the app background, is the standard level for all elements
+    /// The [`Surface`](ui::ElevationIndex::Surface) elevation level, located above the app background, is the standard level for all elements
     ///
     /// Sets `bg()`, `rounded_lg()`, `border()`, `border_color()`, `shadow()`
     ///
@@ -87,7 +87,7 @@ pub trait StyledExt: Styled + Sized {
         elevated(self, cx, ElevationIndex::Surface)
     }
 
-    /// Non-Modal Elevated Surfaces appear above the [`Surface`](ui2::ElevationIndex::Surface) layer and is used for things that should appear above most UI elements like an editor or panel, but not elements like popovers, context menus, modals, etc.
+    /// Non-Modal Elevated Surfaces appear above the [`Surface`](ui::ElevationIndex::Surface) layer and is used for things that should appear above most UI elements like an editor or panel, but not elements like popovers, context menus, modals, etc.
     ///
     /// Sets `bg()`, `rounded_lg()`, `border()`, `border_color()`, `shadow()`
     ///
@@ -100,7 +100,7 @@ pub trait StyledExt: Styled + Sized {
     ///
     /// Elements rendered at this layer should have an enforced behavior: Any interaction outside of the modal will either dismiss the modal or prompt an action (Save your progress, etc) then dismiss the modal.
     ///
-    /// If the element does not have this behavior, it should be rendered at the [`Elevated Surface`](ui2::ElevationIndex::ElevatedSurface) layer.
+    /// If the element does not have this behavior, it should be rendered at the [`Elevated Surface`](ui::ElevationIndex::ElevatedSurface) layer.
     ///
     /// Sets `bg()`, `rounded_lg()`, `border()`, `border_color()`, `shadow()`
     ///

crates/ui/src/utils/format_distance.rs 🔗

@@ -246,7 +246,7 @@ fn distance_string(
 ///
 /// ```rust
 /// use chrono::DateTime;
-/// use ui2::utils::naive_format_distance;
+/// use ui::utils::format_distance;
 ///
 /// fn time_between_moon_landings() -> String {
 ///     let date = DateTime::parse_from_rfc3339("1969-07-20T00:00:00Z").unwrap().naive_local();
@@ -282,7 +282,7 @@ pub fn format_distance(
 ///
 /// ```rust
 /// use chrono::DateTime;
-/// use ui2::utils::naive_format_distance_from_now;
+/// use ui::utils::naive_format_distance_from_now;
 ///
 /// fn time_since_first_moon_landing() -> String {
 ///     let date = DateTime::parse_from_rfc3339("1969-07-20T00:00:00Z").unwrap().naive_local();