]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
rust/protover: fix ProtoEntry::from_str docs
authorcypherpunks <cypherpunks@torproject.org>
Tue, 7 Aug 2018 14:35:17 +0000 (14:35 +0000)
committercypherpunks <cypherpunks@torproject.org>
Fri, 17 Aug 2018 02:38:23 +0000 (02:38 +0000)
Texxt was copied from a function that returned a single
tuple in 88b2f170e451567a3b0095a420544a675a5826b0.

src/rust/protover/protover.rs

index 933defa7057367ca785321467182fa2f268d1383..ad1fd446e935671311da59b9f2a65642117baada 100644 (file)
@@ -206,9 +206,7 @@ impl FromStr for ProtoEntry {
     ///
     /// # Returns
     ///
-    /// A `Result` whose `Ok` value is a `ProtoEntry`, where the
-    /// first element is the subprotocol type (see `protover::Protocol`) and the last
-    /// element is an ordered set of `(low, high)` unique version numbers which are supported.
+    /// A `Result` whose `Ok` value is a `ProtoEntry`.
     /// Otherwise, the `Err` value of this `Result` is a `ProtoverError`.
     fn from_str(protocol_entry: &str) -> Result<ProtoEntry, ProtoverError> {
         let mut proto_entry: ProtoEntry = ProtoEntry::default();