Skip to content

Commit

Permalink
Add unstable attributes to new arc methods
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mabileau <[email protected]>
  • Loading branch information
PaulDance authored and sunjay committed Oct 11, 2020
1 parent e7f1815 commit d4b5975
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/turtle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ impl Turtle {
/// assert!((turtle.position() - [-100.0, -100.0].into()).len() <= 0.5);
/// assert!(turtle.heading().abs().min((turtle.heading() - 360.0).abs()) <= 0.1);
/// ```
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn arc_left(&mut self, radius: Distance, extent: Angle) {
block_on(self.turtle.arc_left(radius, extent))
}
Expand Down Expand Up @@ -322,6 +324,8 @@ impl Turtle {
/// assert!((turtle.position() - [100.0, -100.0].into()).len() <= 0.5);
/// assert!((turtle.heading() - 180.0).abs() <= 0.1);
/// ```
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn arc_right(&mut self, radius: Distance, extent: Angle) {
block_on(self.turtle.arc_right(radius, extent))
}
Expand Down

0 comments on commit d4b5975

Please sign in to comment.