Skip to content

Commit

Permalink
chore: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Aug 29, 2023
1 parent 057a945 commit 9230d95
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Bencode

A bencode encode and decode library implement by go.
A bencode encode and decode library implement by go. Better performance and more friendly.

- [x] Decode
- [x] Encode
Expand Down
2 changes: 1 addition & 1 deletion decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (decode *decode) convertSlice() (list []interface{}) {
func (decode *decode) convertNumeric() int {
step := decode.expect(EndOfType)
negative := 1
// consume all of operate symbol
// consume next operate symbol
if decode.at(decode.pos+1) == MinusSign {
negative = -1
decode.step()
Expand Down
4 changes: 0 additions & 4 deletions encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ import (
"strings"
)

// We accept user pass a interface. I don't want to using generic.
// Will using reflection. Although it will have a performance loss,
// but it worth.

type encode struct {
output []byte
}
Expand Down

0 comments on commit 9230d95

Please sign in to comment.