Skip to content

Commit fb526cf

Browse files
committed
Fix finish docs
1 parent bd85983 commit fb526cf

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/libcore/fmt/builders.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
9393
self
9494
}
9595

96-
/// Consumes the `DebugStruct`, finishing output and returning any error
97-
/// encountered.
96+
/// Finishes output and returns any error encountered.
9897
#[unstable(feature = "debug_builders", reason = "method was just created")]
9998
pub fn finish(&mut self) -> fmt::Result {
10099
if self.has_fields {
@@ -156,8 +155,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
156155
self
157156
}
158157

159-
/// Consumes the `DebugTuple`, finishing output and returning any error
160-
/// encountered.
158+
/// Finishes output and returns any error encountered.
161159
#[unstable(feature = "debug_builders", reason = "method was just created")]
162160
pub fn finish(&mut self) -> fmt::Result {
163161
if self.has_fields {
@@ -246,8 +244,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
246244
self
247245
}
248246

249-
/// Consumes the `DebugSet`, finishing output and returning any error
250-
/// encountered.
247+
/// Finishes output and returns any error encountered.
251248
#[unstable(feature = "debug_builders", reason = "method was just created")]
252249
pub fn finish(&mut self) -> fmt::Result {
253250
self.inner.finish();
@@ -292,8 +289,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
292289
self
293290
}
294291

295-
/// Consumes the `DebugSet`, finishing output and returning any error
296-
/// encountered.
292+
/// Finishes output and returns any error encountered.
297293
#[unstable(feature = "debug_builders", reason = "method was just created")]
298294
pub fn finish(&mut self) -> fmt::Result {
299295
self.inner.finish();
@@ -349,8 +345,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
349345
self
350346
}
351347

352-
/// Consumes the `DebugMap`, finishing output and returning any error
353-
/// encountered.
348+
/// Finishes output and returns any error encountered.
354349
#[unstable(feature = "debug_builders", reason = "method was just created")]
355350
pub fn finish(&mut self) -> fmt::Result {
356351
let prefix = if self.is_pretty() && self.has_fields { "\n" } else { "" };

0 commit comments

Comments
 (0)