Skip to content

Commit 2a4bcf5

Browse files
committed
update doc-comment of BuildStamp::add_stamp
Signed-off-by: onur-ozkan <[email protected]>
1 parent b03fba7 commit 2a4bcf5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/src/utils/build_stamp.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ impl BuildStamp {
4848
&self.stamp
4949
}
5050

51-
/// Sets stamp content to the specified value.
51+
/// Adds specified stamp content to the current value.
52+
///
53+
/// This method can be used incrementally e.g., `add_stamp("x").add_stamp("y").add_stamp("z")`.
5254
pub fn add_stamp<S: ToString>(mut self, stamp: S) -> Self {
5355
self.stamp.push_str(&stamp.to_string());
5456
self

0 commit comments

Comments
 (0)