cob: Fix typos

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier 2022-12-30 12:59:11 +01:00
parent 86e56d2053
commit bf22cea014
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -795,12 +795,12 @@ impl<'a> Patches<'a> {
Ok(PatchMut::new(id, patch, clock, self))
}
/// Get an issue.
/// Get a patch.
pub fn get(&self, id: &ObjectId) -> Result<Option<Patch>, store::Error> {
self.raw.get(id).map(|r| r.map(|(p, _)| p))
}
/// Get an issue mutably.
/// Get a patch mutably.
pub fn get_mut<'g>(&'g mut self, id: &ObjectId) -> Result<PatchMut<'a, 'g>, store::Error> {
let (patch, clock) = self
.raw