瀏覽代碼

rust/protover: fix ProtoEntry::from_str docs

Texxt was copied from a function that returned a single
tuple in 88b2f170e451567a3b0095a420544a675a5826b0.
cypherpunks 5 年之前
父節點
當前提交
7bb658a633
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/rust/protover/protover.rs

+ 1 - 3
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();