Skip to content

Commit 44211bd

Browse files
committed
Added better reason for exposing flags and get_flags as unstable
1 parent 19a746a commit 44211bd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

core/src/fmt/mod.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -484,13 +484,21 @@ impl FormattingOptions {
484484
}
485485

486486
#[doc(hidden)]
487-
#[unstable(feature = "fmt_internals", reason = "internal to standard library", issue = "none")]
487+
#[unstable(
488+
feature = "fmt_internals",
489+
reason = "internal routines only exposed for testing",
490+
issue = "none"
491+
)]
488492
/// Flags for formatting
489493
pub fn flags(&mut self, flags: u32) {
490494
self.flags = flags
491495
}
492496
#[doc(hidden)]
493-
#[unstable(feature = "fmt_internals", reason = "internal to standard library", issue = "none")]
497+
#[unstable(
498+
feature = "fmt_internals",
499+
reason = "internal routines only exposed for testing",
500+
issue = "none"
501+
)]
494502
/// Flags for formatting
495503
pub fn get_flags(&self) -> u32 {
496504
self.flags

0 commit comments

Comments
 (0)