From f1a775c355e8e1f0614966cc7c80d3ce4dd12fd7 Mon Sep 17 00:00:00 2001 From: manapointer Date: Sun, 25 Dec 2022 18:18:11 -0800 Subject: [PATCH] update docs to be accurate to the change --- components/salsa-2022/src/storage.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/salsa-2022/src/storage.rs b/components/salsa-2022/src/storage.rs index 5005eb63..12337e07 100644 --- a/components/salsa-2022/src/storage.rs +++ b/components/salsa-2022/src/storage.rs @@ -19,9 +19,6 @@ pub struct Storage { /// Data shared across all databases. This contains the ingredients needed by each jar. /// See the ["jars and ingredients" chapter](https://salsa-rs.github.io/salsa/plumbing/jars_and_ingredients.html) /// for more detailed description. - /// - /// Even though this struct is stored in an `Arc`, we sometimes get mutable access to it - /// by using `Arc::get_mut`. This is only possible when all parallel snapshots have been dropped. shared: Shared, /// The "ingredients" structure stores the information about how to find each ingredient in the database. @@ -43,6 +40,9 @@ struct Shared { /// Contains the data for each jar in the database. /// Each jar stores its own structs in there that ultimately contain ingredients /// (types that implement the [`Ingredient`] trait, like [`crate::function::FunctionIngredient`]). + /// + /// Even though these jars are stored in an `Arc`, we sometimes get mutable access to them + /// by using `Arc::get_mut`. This is only possible when all parallel snapshots have been dropped. jars: Option>, /// Conditional variable that is used to coordinate cancellation.