Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cob: Fix typos
Alexis Sellier committed 3 years ago
commit bf22cea01471f0e95fd7ecbb6288fb7c4e3f7d8f
parent 86e56d20530658706eae8d1415707ed181c6bc52
1 file changed +2 -2
modified radicle/src/cob/patch.rs
@@ -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