fix doctests
This commit is contained in:
@@ -27,7 +27,7 @@ use crate::{
|
||||
///
|
||||
/// let map = Beatmap::from_path("./resources/2785319.osu").unwrap();
|
||||
/// let difficulty = Difficulty::new().mods(64); // DT
|
||||
/// let mut iter = GradualDifficulty::new(&difficulty, &map);
|
||||
/// let mut iter = GradualDifficulty::new(difficulty, &map);
|
||||
///
|
||||
/// // the difficulty of the map after the first object
|
||||
/// let attrs1 = iter.next();
|
||||
|
||||
@@ -36,7 +36,7 @@ use crate::{
|
||||
///
|
||||
/// let map = Beatmap::from_path("./resources/2785319.osu").unwrap();
|
||||
/// let difficulty = Difficulty::new().mods(64); // DT
|
||||
/// let mut gradual = GradualPerformance::new(&difficulty, &map);
|
||||
/// let mut gradual = GradualPerformance::new(difficulty, &map);
|
||||
/// let mut state = ScoreState::new(); // empty state, everything is on 0.
|
||||
///
|
||||
/// // The first 10 hitresults are 300s
|
||||
|
||||
@@ -39,7 +39,7 @@ use super::{
|
||||
/// .unchecked_into_converted::<Catch>();
|
||||
///
|
||||
/// let difficulty = Difficulty::new().mods(64); // DT
|
||||
/// let mut iter = CatchGradualDifficulty::new(&difficulty, &converted);
|
||||
/// let mut iter = CatchGradualDifficulty::new(difficulty, &converted);
|
||||
///
|
||||
/// // the difficulty of the map after the first hit object
|
||||
/// let attrs1 = iter.next();
|
||||
|
||||
@@ -29,7 +29,7 @@ use crate::{
|
||||
/// .unchecked_into_converted::<Catch>();
|
||||
///
|
||||
/// let difficulty = Difficulty::new().mods(64); // DT
|
||||
/// let mut gradual = CatchGradualPerformance::new(&difficulty, &converted);
|
||||
/// let mut gradual = CatchGradualPerformance::new(difficulty, &converted);
|
||||
/// let mut state = CatchScoreState::new(); // empty state, everything is on 0.
|
||||
///
|
||||
/// // The first 10 hitresults are only fruits
|
||||
|
||||
@@ -33,7 +33,7 @@ use super::{
|
||||
/// .unchecked_into_converted();
|
||||
///
|
||||
/// let difficulty = Difficulty::new().mods(64); // DT
|
||||
/// let mut iter = ManiaGradualDifficulty::new(&difficulty, &converted);
|
||||
/// let mut iter = ManiaGradualDifficulty::new(difficulty, &converted);
|
||||
///
|
||||
/// // the difficulty of the map after the first hit object
|
||||
/// let attrs1 = iter.next();
|
||||
|
||||
@@ -28,7 +28,7 @@ use super::{ManiaPerformanceAttributes, ManiaScoreState};
|
||||
/// .unchecked_into_converted::<Mania>();
|
||||
///
|
||||
/// let difficulty = Difficulty::new().mods(64); // DT
|
||||
/// let mut gradual = ManiaGradualPerformance::new(&difficulty, &converted);
|
||||
/// let mut gradual = ManiaGradualPerformance::new(difficulty, &converted);
|
||||
/// let mut state = ManiaScoreState::new(); // empty state, everything is on 0.
|
||||
///
|
||||
/// // The first 10 hitresults are 320s
|
||||
|
||||
@@ -39,7 +39,7 @@ use super::{
|
||||
/// .unchecked_into_converted::<Osu>();
|
||||
///
|
||||
/// let difficulty = Difficulty::new().mods(64); // DT
|
||||
/// let mut iter = OsuGradualDifficulty::new(&difficulty, &converted);
|
||||
/// let mut iter = OsuGradualDifficulty::new(difficulty, &converted);
|
||||
///
|
||||
/// // the difficulty of the map after the first hit object
|
||||
/// let attrs1 = iter.next();
|
||||
|
||||
@@ -28,7 +28,7 @@ use super::{OsuPerformanceAttributes, OsuScoreState};
|
||||
/// .unchecked_into_converted::<Osu>();
|
||||
///
|
||||
/// let difficulty = Difficulty::new().mods(64); // DT
|
||||
/// let mut gradual = OsuGradualPerformance::new(&difficulty, &converted);
|
||||
/// let mut gradual = OsuGradualPerformance::new(difficulty, &converted);
|
||||
/// let mut state = OsuScoreState::new(); // empty state, everything is on 0.
|
||||
///
|
||||
/// // The first 10 hits are 300s and there are no sliders for additional combo
|
||||
|
||||
@@ -33,7 +33,7 @@ use super::{
|
||||
/// .unchecked_into_converted::<Taiko>();
|
||||
///
|
||||
/// let difficulty = Difficulty::new().mods(64); // DT
|
||||
/// let mut iter = TaikoGradualDifficulty::new(&difficulty, &converted);
|
||||
/// let mut iter = TaikoGradualDifficulty::new(difficulty, &converted);
|
||||
///
|
||||
/// // the difficulty of the map after the first hit object
|
||||
/// let attrs1 = iter.next();
|
||||
|
||||
@@ -28,7 +28,7 @@ use super::TaikoPerformanceAttributes;
|
||||
/// .unchecked_into_converted::<Taiko>();
|
||||
///
|
||||
/// let difficulty = Difficulty::new().mods(64); // DT
|
||||
/// let mut gradual = TaikoGradualPerformance::new(&difficulty, &converted);
|
||||
/// let mut gradual = TaikoGradualPerformance::new(difficulty, &converted);
|
||||
/// let mut state = TaikoScoreState::new(); // empty state, everything is on 0.
|
||||
///
|
||||
/// // The first 10 hitresults are 300s
|
||||
|
||||
Reference in New Issue
Block a user