##// END OF EJS Templates
rust-changelog: made doc-comments more consistent...
Georges Racinet -
r51266:b47a9316 default
parent child Browse files
Show More
@@ -9,7 +9,7 b' use std::ascii::escape_default;'
9 use std::borrow::Cow;
9 use std::borrow::Cow;
10 use std::fmt::{Debug, Formatter};
10 use std::fmt::{Debug, Formatter};
11
11
12 /// A specialized `Revlog` to work with `changelog` data format.
12 /// A specialized `Revlog` to work with changelog data format.
13 pub struct Changelog {
13 pub struct Changelog {
14 /// The generic `revlog` format.
14 /// The generic `revlog` format.
15 pub(crate) revlog: Revlog,
15 pub(crate) revlog: Revlog,
@@ -23,7 +23,7 b' impl Changelog {'
23 Ok(Self { revlog })
23 Ok(Self { revlog })
24 }
24 }
25
25
26 /// Return the `ChangelogEntry` for the given node ID.
26 /// Return the `ChangelogRevisionData` for the given node ID.
27 pub fn data_for_node(
27 pub fn data_for_node(
28 &self,
28 &self,
29 node: NodePrefix,
29 node: NodePrefix,
@@ -32,7 +32,7 b' impl Changelog {'
32 self.data_for_rev(rev)
32 self.data_for_rev(rev)
33 }
33 }
34
34
35 /// Return the `RevlogEntry` of the given revision number.
35 /// Return the `RevlogEntry` for the given revision number.
36 pub fn entry_for_rev(
36 pub fn entry_for_rev(
37 &self,
37 &self,
38 rev: Revision,
38 rev: Revision,
@@ -40,7 +40,7 b' impl Changelog {'
40 self.revlog.get_entry(rev)
40 self.revlog.get_entry(rev)
41 }
41 }
42
42
43 /// Return the `ChangelogEntry` of the given revision number.
43 /// Return the [`ChangelogRevisionData`] for the given revision number.
44 pub fn data_for_rev(
44 pub fn data_for_rev(
45 &self,
45 &self,
46 rev: Revision,
46 rev: Revision,
General Comments 0
You need to be logged in to leave comments. Login now