Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 16, 2024
1 parent 85bd409 commit 70e6ed7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commons/src/cache/app_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl AppCache {
/// # Errors
///
/// - If files cannot be moved from the cache to the path
/// then an error will be raised.
/// then an io error will be raised.
pub fn load(&self) -> Result<&Self, CacheError> {
fs_err::create_dir_all(&self.path).map_err(CacheError::IoError)?;
fs_err::create_dir_all(&self.cache).map_err(CacheError::IoError)?;
Expand Down Expand Up @@ -271,7 +271,7 @@ pub fn build<B: libcnb::Buildpack>(
///
/// # Errors
///
/// - If the copy command fails an `IoExtraError` will be raised.
/// - If the copy command fails an io error will be raised.
fn preserve_path_save(store: &AppCache) -> Result<&AppCache, CacheError> {
cp_r::CopyOptions::new()
.create_destination(true)
Expand All @@ -293,7 +293,7 @@ fn preserve_path_save(store: &AppCache) -> Result<&AppCache, CacheError> {
///
/// # Errors
///
/// - If the move command fails an `IoExtraError` will be raised.
/// - If the move command fails an io error will be raised.
fn remove_path_save(store: &AppCache) -> Result<&AppCache, CacheError> {
cp_r::CopyOptions::new()
.create_destination(true)
Expand Down

0 comments on commit 70e6ed7

Please sign in to comment.