Repository: toml-rs/toml (language: rust)

Issue:
Docs reference to_string_in_original_order
In https://github.com/ordian/toml_edit/blob/a06c6f5a294155d39cdd06a586c6969027bdaea1/src/table.rs#L191-L197, the docs reference `Document::to_string_in_original_order` which seems to be gone.

I'm don't know how to best rewrite the text as I'm not sure if there are even two cases left or `set_position` is always respeced.


Discussion / hints:

Fix patch:
diff --git a/src/table.rs b/src/table.rs
index 8fc1ca1f..41bb0033 100644
--- a/src/table.rs
+++ b/src/table.rs
@@ -189,9 +189,6 @@ impl Table {
     }
 
     /// Sets the position of the `Table` within the `Document`.
-    ///
-    /// Setting the position of a table will only affect output when
-    /// `Document::to_string_in_original_order` is used.
     pub fn set_position(&mut self, position: usize) {
         self.position = Some(position);
     }


Test patch: