Skip to content

Commit 3e3d6f6

Browse files
committed
fix: typo
Signed-off-by: Gaius <gaius.qi@gmail.com>
1 parent dcda014 commit 3e3d6f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ scalable file sharing capabilities.
1919
| ----- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2020
| 0 | Download Piece | Download the content of a piece from a peer. It is composed of `{Task ID}-{Piece ID}`, where the Task ID is a 32-byte SHA-256 value and the Piece ID is a number. |
2121
| 1 | Piece Content | The content of a piece, with a maximum size of 1 GiB per piece. |
22-
| 2-254 | Reserved | Reserved for future use. |
22+
| 2-253 | Reserved | Reserved for future use. |
2323
| 254 | Close | Close connection. |
2424
| 255 | Error | Error message. |
2525

@@ -42,7 +42,7 @@ scalable file sharing capabilities.
4242
- **Piece Content (Tag=0x01):** Raw piece data or piece fragments.
4343
- **Error (Tag=0xFF):** Conveys error.
4444
- **Close (Tag=0xFE):** Indicates the end of a connection.
45-
- **Reserved Tags:** Tags 2-254 may be allocated for metadata, compression, encryption, or future protocol extensions.
45+
- **Reserved Tags:** Tags 2-253 may be allocated for metadata, compression, encryption, or future protocol extensions.
4646

4747
## Example
4848

src/tlv/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub enum Code {
3838
Internal = 3,
3939

4040
/// Reserved for future use.
41-
Reserved(u8), // For tags 4-254
41+
Reserved(u8), // For tags 4-253
4242
}
4343

4444
/// Implement TryFrom<u8> for Code.

0 commit comments

Comments
 (0)