This commit is contained in:
Roman Mandeleil 2015-02-27 09:33:09 +02:00
parent eb202cd2a4
commit bf769478f9
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ public class PeerId {
HashUtil.randomPeerId();
}
public byte nextBit(String startPatern) {
public byte nextBit(String startPattern) {
if (this.toBinaryString().startsWith(startPatern + "1"))
if (this.toBinaryString().startsWith(startPattern + "1"))
return 1;
else
return 0;