Skip to content

Commit d4b5975

Browse files
PaulDancesunjay
authored andcommitted
Add unstable attributes to new arc methods
Signed-off-by: Paul Mabileau <[email protected]>
1 parent e7f1815 commit d4b5975

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/turtle.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ impl Turtle {
262262
/// assert!((turtle.position() - [-100.0, -100.0].into()).len() <= 0.5);
263263
/// assert!(turtle.heading().abs().min((turtle.heading() - 360.0).abs()) <= 0.1);
264264
/// ```
265+
#[cfg(feature = "unstable")]
266+
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
265267
pub fn arc_left(&mut self, radius: Distance, extent: Angle) {
266268
block_on(self.turtle.arc_left(radius, extent))
267269
}
@@ -322,6 +324,8 @@ impl Turtle {
322324
/// assert!((turtle.position() - [100.0, -100.0].into()).len() <= 0.5);
323325
/// assert!((turtle.heading() - 180.0).abs() <= 0.1);
324326
/// ```
327+
#[cfg(feature = "unstable")]
328+
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
325329
pub fn arc_right(&mut self, radius: Distance, extent: Angle) {
326330
block_on(self.turtle.arc_right(radius, extent))
327331
}

0 commit comments

Comments
 (0)