修正代码中的若干拼写错误

This commit is contained in:
Tnze
2019-07-16 23:32:54 +08:00
parent a7858a2459
commit 2809be4542
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
// Useage: go run cmd/ping/ping.go localhost
// Usage: go run cmd/ping/ping.go localhost
package main
import (

View File

@ -225,8 +225,8 @@ func getStatus() pk.Packet {
}
}
func disconnectID(protocal int32) byte {
switch protocal {
func disconnectID(protocol int32) byte {
switch protocol {
case 404:
return 0x1B
case 477, 480:

View File

@ -13,12 +13,12 @@ type Field interface {
FieldDecoder
}
// A FieldEncoder can be encode as minecraft protocal used.
// A FieldEncoder can be encode as minecraft protocol used.
type FieldEncoder interface {
Encode() []byte
}
// A FieldDecoder can Decode from minecraft protocal
// A FieldDecoder can Decode from minecraft protocol
type FieldDecoder interface {
Decode(r DecodeReader) error
}