Skip to content

Commit

Permalink
docs: add documentation for Direction enum and its variants
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Sep 21, 2024
1 parent b26761a commit 3b94ac6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/isotonic_regression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ impl<T: Coordinate> IsotonicRegression<T> {
/// # 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),
Expand Down
3 changes: 2 additions & 1 deletion src/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ impl<T: Coordinate> From<(T, T)> for Point<T> {
/// # 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);
Expand Down

0 comments on commit 3b94ac6

Please sign in to comment.