From b7d0479b5c98c984d2957ddf5efed978e2771512 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Tue, 3 Jan 2023 14:28:18 +0100 Subject: [PATCH] cob: Add some more information about `resource` Signed-off-by: Alexis Sellier --- radicle-cob/src/history/entry.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicle-cob/src/history/entry.rs b/radicle-cob/src/history/entry.rs index 78cc4ea2..bb86717e 100644 --- a/radicle-cob/src/history/entry.rs +++ b/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, @@ -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 }