diff options
Diffstat (limited to 'cmd/mybittorrent/main.go')
| -rw-r--r-- | cmd/mybittorrent/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mybittorrent/main.go b/cmd/mybittorrent/main.go index 87095ae..e3e902a 100644 --- a/cmd/mybittorrent/main.go +++ b/cmd/mybittorrent/main.go @@ -42,7 +42,7 @@ func main() { if command == "decode" { bencodedValue := os.Args[2] - decoded, err := decodeBencode(bencodedValue) + decoded, err := NewDecoder(bencodedValue).Decode() if err != nil { fmt.Println(err) return |