diff options
author | cypherpunks <cypherpunks@torproject.org> | 2018-08-07 14:35:17 +0000 |
---|---|---|
committer | cypherpunks <cypherpunks@torproject.org> | 2018-08-17 02:38:23 +0000 |
commit | 7bb658a63371df07f04054931606e6145a3816f6 (patch) | |
tree | 9d9276a28ca99cee043c9ca5021fdbe6e0b024ca /src/rust | |
parent | c8aecd14fecc55f5d8a48f793c24e3df68f1483c (diff) | |
download | tor-7bb658a63371df07f04054931606e6145a3816f6.tar.gz tor-7bb658a63371df07f04054931606e6145a3816f6.zip |
rust/protover: fix ProtoEntry::from_str docs
Texxt was copied from a function that returned a single
tuple in 88b2f170e451567a3b0095a420544a675a5826b0.
Diffstat (limited to 'src/rust')
-rw-r--r-- | src/rust/protover/protover.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs index 933defa705..ad1fd446e9 100644 --- a/src/rust/protover/protover.rs +++ b/src/rust/protover/protover.rs @@ -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(); |