Skip to content

Commit

Permalink
docs(dependencies): fix doc comment for cache_package 🐛 📝
Browse files Browse the repository at this point in the history
  • Loading branch information
andho committed Dec 13, 2024
1 parent 839318a commit 9411d63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler-cli/src/dependencies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,9 +1032,9 @@ impl PackageFetcher {
})
}

/// Caches the result so subsequent calls to `get_dependencies` so that we don't need to make a
/// network request. Currently dependencies are fetched during initial version resolution, and
/// then during check for major version availability.
/// Caches the result of `get_dependencies` so that we don't need to make a network request.
/// Currently dependencies are fetched during initial version resolution, and then during check
/// for major version availability.
fn cache_package(&self, package: &str, result: hexpm::Package) {
let mut runtime_cache = self.runtime_cache.borrow_mut();
let _ = runtime_cache.insert(package.to_string(), result);
Expand Down

0 comments on commit 9411d63

Please sign in to comment.