We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d27055 commit 9bd9727Copy full SHA for 9bd9727
docs/book/content/types/objects/using_contexts.md
@@ -123,7 +123,7 @@ impl User {
123
// If context is immutable use .read() on RwLock
124
let mut context = context.write().await;
125
// Preform a mutable operation
126
- context.requested_count.entry(0).and_modify(|e| { *e += 1 }).or_insert(1)
+ context.requested_count.entry(self.id).and_modify(|e| { *e += 1 }).or_insert(1)
127
}
128
129
fn name(&self) -> &str {
0 commit comments