Skip to content

Commit

Permalink
Fix finish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed May 18, 2015
1 parent bd85983 commit fb526cf
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/libcore/fmt/builders.rs
Expand Up @@ -93,8 +93,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
self
}

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

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

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

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

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

0 comments on commit fb526cf

Please sign in to comment.