Skip to content

Commit

Permalink
Update doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Sep 1, 2022
1 parent 7641fec commit 53cfcb6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/fj-kernel/src/objects/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ use crate::builder::CycleBuilder;
use super::{Edge, Surface};

/// A cycle of connected edges
///
/// The end of each edge in the cycle must connect to the beginning of the next
/// edge. The end of the last edge must connect to the beginning of the first
/// one.
#[derive(Clone, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
pub struct Cycle {
surface: Surface,
Expand All @@ -20,6 +16,11 @@ impl Cycle {
}

/// Create a new cycle
///
/// # Panics
///
/// Panic, if the end of each edge does not connect to the beginning of the
/// next edge.
pub fn new(
surface: Surface,
edges: impl IntoIterator<Item = Edge>,
Expand Down

0 comments on commit 53cfcb6

Please sign in to comment.