mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
rust/protover: fix ProtoEntry::from_str docs
Texxt was copied from a function that returned a single
tuple in 88b2f170e4
.
This commit is contained in:
parent
c8aecd14fe
commit
7bb658a633
@ -206,9 +206,7 @@ impl FromStr for ProtoEntry {
|
|||||||
///
|
///
|
||||||
/// # Returns
|
/// # Returns
|
||||||
///
|
///
|
||||||
/// A `Result` whose `Ok` value is a `ProtoEntry`, where the
|
/// A `Result` whose `Ok` value is a `ProtoEntry`.
|
||||||
/// 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.
|
|
||||||
/// Otherwise, the `Err` value of this `Result` is a `ProtoverError`.
|
/// Otherwise, the `Err` value of this `Result` is a `ProtoverError`.
|
||||||
fn from_str(protocol_entry: &str) -> Result<ProtoEntry, ProtoverError> {
|
fn from_str(protocol_entry: &str) -> Result<ProtoEntry, ProtoverError> {
|
||||||
let mut proto_entry: ProtoEntry = ProtoEntry::default();
|
let mut proto_entry: ProtoEntry = ProtoEntry::default();
|
||||||
|
Loading…
Reference in New Issue
Block a user