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

master
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
1 changed files with 3 additions and 3 deletions

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 {
/// 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 {
let base: u8 = self.clone().into();