From ab4089f5f3da0defff1a0947ce41c679bfdbb54e Mon Sep 17 00:00:00 2001 From: Corwin Date: Wed, 12 Oct 2022 17:05:58 +0100 Subject: [PATCH] fix broken links --- agb/src/save/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/agb/src/save/mod.rs b/agb/src/save/mod.rs index 74be7387..4bbf3122 100644 --- a/agb/src/save/mod.rs +++ b/agb/src/save/mod.rs @@ -39,7 +39,7 @@ //! //! ## Using save media //! -//! To access save media, use the [`SaveData::new`] method to create a new +//! To access save media, use the [`SaveManager::access`] or [`SaveManager::access_with_timer`] methods to create a new //! [`SaveData`] object. Its methods are used to read or write save media. //! //! Reading data from the savegame is simple. Use [`read`] to copy data from an @@ -61,8 +61,8 @@ //! [`read`]: SaveData::read //! [`prepare_write`]: SaveData::prepare_write //! [`write`]: SavePreparedBlock::write -//! [`sector_size`]: SaveAccess::sector_size -//! [`align_range`]: SaveAccess::align_range +//! [`sector_size`]: SaveData::sector_size +//! [`align_range`]: SaveData::align_range //! //! ## Performance and Other Details //! @@ -266,7 +266,7 @@ impl SaveData { /// Returns a range that contains all sectors the input range overlaps. /// /// This can be used to calculate which blocks would be erased by a call - /// to [`prepare_write`](`SaveAccess::prepare_write`) + /// to [`prepare_write`](`SaveData::prepare_write`) #[must_use] pub fn align_range(&self, range: Range) -> Range { let shift = self.info.sector_shift; @@ -278,7 +278,7 @@ impl SaveData { /// /// This will erase any data in any sector overlapping the input range. To /// calculate which offset ranges would be affected, use the - /// [`align_range`](`SaveAccess::align_range`) function. + /// [`align_range`](`SaveData::align_range`) function. pub fn prepare_write(&mut self, range: Range) -> Result { self.check_bounds(range.clone())?; if self.info.uses_prepare_write {