Skip to content

Commit a1b4524

Browse files
authored
Update docs for 1.2.2
1 parent acc58e4 commit a1b4524

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Bencode Input/Output Streams for Java
99

10-
Requires JDK 1.5 or higher
10+
Requires JDK 1.6 or higher
1111

1212
[Bencode Spec](https://wiki.theory.org/BitTorrentSpecification#Bencoding)
1313

@@ -23,13 +23,13 @@ http://dampcake.github.io/bencode
2323
<dependency>
2424
<groupId>com.dampcake</groupId>
2525
<artifactId>bencode</artifactId>
26-
<version>1.2.1</version>
26+
<version>1.2.2</version>
2727
</dependency>
2828
```
2929

3030
### Gradle
3131
```groovy
32-
compile 'com.dampcake:bencode:1.2.1'
32+
compile 'com.dampcake:bencode:1.2.2'
3333
```
3434

3535
### Examples
@@ -50,7 +50,7 @@ byte[] encoded = bencode.encode(new HashMap<Object, Object>() {{
5050
}});
5151
}});
5252

53-
System.out.println(new String(out.toByteArray(), bencode.getCharset()));
53+
System.out.println(new String(encoded, bencode.getCharset()));
5454
```
5555

5656
Outputs: ```d4:dictd3:1234:test3:4565:thinge4:listl11:list-item-111:list-item-2e6:numberi123456e6:string5:valuee```

0 commit comments

Comments
 (0)