From 3b94ac67da0aee71bd4dbfbdad5d290dbaa89f30 Mon Sep 17 00:00:00 2001 From: "Ian Clarke (aider)" Date: Sat, 21 Sep 2024 16:49:35 -0500 Subject: [PATCH] docs: add documentation for Direction enum and its variants --- src/isotonic_regression.rs | 3 ++- src/point.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/isotonic_regression.rs b/src/isotonic_regression.rs index 69b262a..1080673 100644 --- a/src/isotonic_regression.rs +++ b/src/isotonic_regression.rs @@ -108,7 +108,8 @@ impl IsotonicRegression { /// # Examples /// /// ``` - /// use pav_regression::{Point, IsotonicRegression, Direction}; + /// use pav_regression::{Point, IsotonicRegression}; + /// use pav_regression::isotonic_regression::Direction; /// /// let points = vec![ /// Point::new(0.0, 1.0), diff --git a/src/point.rs b/src/point.rs index 3e01ba6..08ff0a8 100644 --- a/src/point.rs +++ b/src/point.rs @@ -128,7 +128,8 @@ impl From<(T, T)> for Point { /// # Examples /// /// ``` -/// use pav_regression::{Point, interpolate_two_points}; +/// use pav_regression::Point; +/// use pav_regression::point::interpolate_two_points; /// /// let point1 = Point::new(0.0, 0.0); /// let point2 = Point::new(2.0, 2.0);