doc: minor fixes

This commit is contained in:
MaxOhn committed 2023-12-30 09:46:34 +01:00
1 parent f9bf256aa2
commit b055095f0d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -434,7 +434,7 @@ impl<'map> OsuPP<'map> {
/// [`OsuPP::new`].
///
/// Returns `None` only if the [`OsuAttributeProvider`] did not contain
/// attributes for catch e.g. if it's [`DifficultyAttributes::Taiko`].
/// attributes for osu e.g. if it's [`DifficultyAttributes::Taiko`].
#[inline]
pub fn try_from_attributes(attributes: impl OsuAttributeProvider) -> Option<Self> {
attributes.attributes().map(Self::from)
+1 -1
View File
@@ -378,7 +378,7 @@ impl<'map> TaikoPP<'map> {
/// [`TaikoPP::new`].
///
/// Returns `None` only if the [`TaikoAttributeProvider`] did not contain
/// attributes for catch e.g. if it's [`DifficultyAttributes::Mania`].
/// attributes for taiko e.g. if it's [`DifficultyAttributes::Mania`].
#[inline]
pub fn try_from_attributes(attributes: impl TaikoAttributeProvider) -> Option<Self> {
attributes.attributes().map(Self::from)