]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
rust/protover: fix docs for UnvalidatedProtoEntry::from_str
authorcypherpunks <cypherpunks@torproject.org>
Tue, 7 Aug 2018 15:06:18 +0000 (15:06 +0000)
committercypherpunks <cypherpunks@torproject.org>
Fri, 17 Aug 2018 02:38:23 +0000 (02:38 +0000)
This got shuffled around in b786b146edd33b025774819f54d7bba3d07bf832
and hasn't been accurate since 124caf28e6db1e7bf8cdfef25c55760c81fb91b5.

src/rust/protover/protover.rs

index f8e64c822c55fc04878909ce95ff809437cba94e..157027750faa35116b95decd801419d6db67b81f 100644 (file)
@@ -493,11 +493,9 @@ impl FromStr for UnvalidatedProtoEntry {
     ///
     /// # Returns
     ///
-    /// A `Result` whose `Ok` value is a `ProtoSet` holding all of the
-    /// unique version numbers.
+    /// A `Result` whose `Ok` value is an `UnvalidatedProtoEntry`.
     ///
-    /// The returned `Result`'s `Err` value is an `ProtoverError` whose `Display`
-    /// impl has a description of the error.
+    /// The returned `Result`'s `Err` value is an `ProtoverError`.
     ///
     /// # Errors
     ///