Skip to content

Commit d582122

Browse files
committed
docs: fix documentation indentation
1 parent 0efdb31 commit d582122

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/protocol.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub enum Frame<'a> {
7676
///
7777
/// * If the local peer will no longer fulfill requests.
7878
/// * Usually sent if the local peer changes which peers are choked and not
79-
/// choked based on which peer has sent more verified pieces.
79+
/// choked based on which peer has sent more verified pieces.
8080
Choke,
8181
/// Unchoke message
8282
///
@@ -86,9 +86,9 @@ pub enum Frame<'a> {
8686
///
8787
/// * If the local peer will fulfill requests.
8888
/// * Usually sent if the local peer changes which peers are choked and not
89-
/// choked based on which peer has sent more verified pieces.
89+
/// choked based on which peer has sent more verified pieces.
9090
/// * May be sent if the local peer is trying to find a peer which can send
91-
/// more piece data efficiently
91+
/// more piece data efficiently
9292
Unchoke,
9393
/// Interested message
9494
///
@@ -97,10 +97,10 @@ pub enum Frame<'a> {
9797
/// Should be sent at least in the following situations:
9898
///
9999
/// * After a remote peer's [BitfieldMsg] message is
100-
/// received and the remote peer has pieces which the local peer does not
101-
/// have.
100+
/// received and the remote peer has pieces which the local peer does not
101+
/// have.
102102
/// * After a remote peer's [HaveMsg] message is received and the
103-
/// [HaveMsg]'s piece index is a piece which the local peer does not have.
103+
/// [HaveMsg]'s piece index is a piece which the local peer does not have.
104104
Interested,
105105
/// Not interested message
106106
///
@@ -109,8 +109,8 @@ pub enum Frame<'a> {
109109
/// Should be sent at least in the following situations:
110110
///
111111
/// * After a local peer has a new piece, the local peer should check each
112-
/// remote peer to see if the remote peer is still interesting. If not
113-
/// interesting, the not interested message should be sent.
112+
/// remote peer to see if the remote peer is still interesting. If not
113+
/// interesting, the not interested message should be sent.
114114
NotInterested,
115115
/// Have piece index message
116116
///
@@ -119,8 +119,8 @@ pub enum Frame<'a> {
119119
/// Should be sent at least in the following situations:
120120
///
121121
/// * After a local peer has a new piece, the local peer should check each
122-
/// remote peer to if they have the piece. If the remote peer does not have the piece,
123-
/// the have message should be sent.
122+
/// remote peer to if they have the piece. If the remote peer does not have the piece,
123+
/// the have message should be sent.
124124
Have(HaveMsg),
125125
/// Have piece index bitfield message
126126
///

0 commit comments

Comments
 (0)