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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -185,7 +185,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
/// "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).