We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BuildStamp::add_stamp
1 parent b03fba7 commit 2a4bcf5Copy full SHA for 2a4bcf5
src/bootstrap/src/utils/build_stamp.rs
@@ -48,7 +48,9 @@ impl BuildStamp {
48
&self.stamp
49
}
50
51
- /// Sets stamp content to the specified value.
+ /// 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")`.
54
pub fn add_stamp<S: ToString>(mut self, stamp: S) -> Self {
55
self.stamp.push_str(&stamp.to_string());
56
self
0 commit comments