Skip to content

Commit 07dc561

Browse files
authored
Merge pull request #6111 from eatradish/public-styledstr-method
feat: mark `StyledStr::push_str` functions public
2 parents cda1b85 + 2b0a847 commit 07dc561

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clap_builder/src/builder/styled_str.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ impl StyledStr {
4141
self.0.push_str(&msg);
4242
}
4343

44-
pub(crate) fn push_str(&mut self, msg: &str) {
44+
/// Appends a given string slice onto the end of this `StyledStr`.
45+
pub fn push_str(&mut self, msg: &str) {
4546
self.0.push_str(msg);
4647
}
4748

0 commit comments

Comments
 (0)