Skip to content

Commit

Permalink
Use the #[deprecated] attribute properly (fixes #34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Dec 29, 2018
1 parent c8a19d1 commit 03e0b11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ impl Gcode {
}

/// The number associated with this `Gcode` (e.g. the `01` in `G01 X123`).
#[deprecated = "You probably want the `Gcode::major_number()` and `Gcode::minor_number()` methods instead"]
#[deprecated(
note = "You probably want the `Gcode::major_number()` and `Gcode::minor_number()` methods instead"
)]
pub fn number(&self) -> f32 {
self.number
}
Expand Down

0 comments on commit 03e0b11

Please sign in to comment.