Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cob: Add some more information about `resource`
Alexis Sellier committed 3 years ago
commit b7d0479b5c98c984d2957ddf5efed978e2771512
parent 67f9c3554d388605adf8aca6c4a7a56cf0262939
1 file changed +2 -1
modified radicle-cob/src/history/entry.rs
@@ -49,6 +49,7 @@ pub struct Entry {
    /// The actor that authored this entry.
    pub(super) actor: PublicKey,
    /// The content-address for the resource this entry lives under.
+
    /// If the resource was updated, this should point to its latest version.
    pub(super) resource: Oid,
    /// The child entries for this entry.
    pub(super) children: Vec<EntryId>,
@@ -87,7 +88,7 @@ impl Entry {
        self.children.iter()
    }

-
    /// The `Oid` of the resource this change lives under.
+
    /// The current `Oid` of the resource this change lives under.
    pub fn resource(&self) -> Oid {
        self.resource
    }