Update library/core/src/fmt/builders.rs

Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
This commit is contained in:
Gus Wynn
2021-03-12 08:52:26 -08:00
committed by GitHub
parent 73ddfa0eea
commit b8e498162e
+1 -1
View File
@@ -185,7 +185,7 @@ pub fn field(&mut self, name: &str, value: &dyn fmt::Debug) -> &mut Self {
/// "Bar { bar: 10, .. }",
/// );
/// ```
#[stable(feature = "debug_non_exhaustive", since = "1.51.0")]
#[stable(feature = "debug_non_exhaustive", since = "1.52.0")]
pub fn finish_non_exhaustive(&mut self) -> fmt::Result {
self.result = self.result.and_then(|_| {
// Draw non-exhaustive dots (`..`), and open brace if necessary (no fields).