ddr::ssq::Difficulty: Fix comment for to_level

This commit is contained in:
Simon Bruder 2020-07-23 13:26:54 +02:00
parent e70d9f6cea
commit 161f472a19
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -365,10 +365,10 @@ impl Into<f32> for Difficulty {
} }
} }
/// Gets level for difficulty from [`ddr::musicdb::Entry.diff_lv`].
///
/// [`ddr::musicdb::Entry.diff_lv`]: ../musicdb/struct.Entry.html#structfield.diff_lv
impl Difficulty { impl Difficulty {
/// Gets level for difficulty from [`ddr::musicdb::Entry.diff_lv`].
///
/// [`ddr::musicdb::Entry.diff_lv`]: ../musicdb/struct.Entry.html#structfield.diff_lv
pub fn to_level(&self, levels: &[u8]) -> u8 { pub fn to_level(&self, levels: &[u8]) -> u8 {
let base: u8 = self.clone().into(); let base: u8 = self.clone().into();