about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2015-05-17 18:09:35 -0700
committerSteven Fackler <sfackler@gmail.com>2015-05-17 18:09:35 -0700
commitfb526cf3a1535b8dac0d572b7eed8d4645008407 (patch)
treea65d5b1ba5016dacaaf120dff62af04ce8928835 /src/libcore
parentbd85983d059151c9ef07dbd11a35f1d16463eb94 (diff)
downloadrust-fb526cf3a1535b8dac0d572b7eed8d4645008407.tar.gz
rust-fb526cf3a1535b8dac0d572b7eed8d4645008407.zip
Fix finish docs
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/fmt/builders.rs15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/libcore/fmt/builders.rs b/src/libcore/fmt/builders.rs
index 310850b8590..c1786dc4c28 100644
--- a/src/libcore/fmt/builders.rs
+++ b/src/libcore/fmt/builders.rs
@@ -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 {
@@ -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 {
@@ -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();
@@ -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();
@@ -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 { "" };