Fix typo
This commit is contained in:
parent
eb202cd2a4
commit
bf769478f9
|
@ -17,9 +17,9 @@ public class PeerId {
|
||||||
HashUtil.randomPeerId();
|
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;
|
return 1;
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue