Skip to content

Commit

Permalink
doc: fixed documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxOhn committed Dec 29, 2023
1 parent f3c39c7 commit d9bf324
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ impl<'map> AnyPP<'map> {
}

/// If the map is an osu!standard map, convert it to another mode.
// TODO: option necessary?
///
/// Returns `None` if `self` already replaced it's internal [`Beatmap`]
/// with difficulty attributes, i.e. if [`AnyPP::attributes`]
/// or [`AnyPP::generate_state`] was called.
#[inline]
pub fn try_mode(self, mode: GameMode) -> Option<Self> {
match self {
Expand Down

0 comments on commit d9bf324

Please sign in to comment.