Skip to content

Commit

Permalink
chore: fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Walther committed Feb 8, 2024
1 parent 3de7da9 commit d18d1fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clovers/src/bvhnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl<'scene> BVHNode<'scene> {
}

impl<'scene> HitableTrait for BVHNode<'scene> {
/// The main `hit` function for a [`BVHNode`]. Given a [Ray](crate::ray::Ray), and an interval `distance_min` and `distance_max`, returns either `None` or `Some(HitRecord)` based on whether the ray intersects with the encased objects during that interval.
/// The main `hit` function for a [`BVHNode`]. Given a [Ray], and an interval `distance_min` and `distance_max`, returns either `None` or `Some(HitRecord)` based on whether the ray intersects with the encased objects during that interval.
#[must_use]
fn hit(
&self,
Expand Down
2 changes: 1 addition & 1 deletion clovers/src/objects/boxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl<'scene> Boxy<'scene> {
}

impl<'scene> HitableTrait for Boxy<'scene> {
/// The main `hit` function for a [Boxy]. Given a [Ray](crate::ray::Ray), and an interval `distance_min` and `distance_max`, returns either `None` or `Some(HitRecord)` based on whether the ray intersects with the object during that interval.
/// The main `hit` function for a [Boxy]. Given a [Ray], and an interval `distance_min` and `distance_max`, returns either `None` or `Some(HitRecord)` based on whether the ray intersects with the object during that interval.
#[must_use]
fn hit(
&self,
Expand Down

0 comments on commit d18d1fd

Please sign in to comment.