Skip to content

Commit

Permalink
Remove broken references in doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Aug 1, 2022
1 parent bc44e6b commit e2ed8ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/fj-kernel/src/algorithms/intersection/curve_edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::objects::{CurveKind, Edge};

use super::LineSegmentIntersection;

/// The intersection between a [`Curve`] and an [`Edge`], in curve coordinates
/// The intersection between a curve and an [`Edge`], in curve coordinates
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
pub enum CurveEdgeIntersection {
/// The curve and edge intersect at a point
Expand All @@ -26,7 +26,7 @@ impl CurveEdgeIntersection {
/// # Panics
///
/// Currently, only intersections between lines and line segments can be
/// computed. Panics, if a different type of [`Curve`] or [`Edge`] is
/// computed. Panics, if a different type of curve or [`Edge`] is
/// passed.
pub fn compute(curve: &CurveKind<2>, edge: &Edge) -> Option<Self> {
let curve_as_line = match curve {
Expand Down
4 changes: 2 additions & 2 deletions crates/fj-kernel/src/algorithms/intersection/curve_face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
objects::{CurveKind, Face},
};

/// The intersections between a [`Curve`] and a [`Face`], in curve coordinates
/// The intersections between a curve and a [`Face`], in curve coordinates
#[derive(Clone, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
pub struct CurveFaceIntersectionList {
intervals: Vec<CurveFaceIntersection>,
Expand All @@ -27,7 +27,7 @@ impl CurveFaceIntersectionList {
Self { intervals }
}

/// Compute the intersections between a [`Curve`] and a [`Face`]
/// Compute the intersections between a curve and a [`Face`]
pub fn compute(curve: &CurveKind<2>, face: &Face) -> Self {
let edges = face.all_cycles().flat_map(|cycle| {
let edges: Vec<_> = cycle.edges().cloned().collect();
Expand Down

0 comments on commit e2ed8ae

Please sign in to comment.