Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Aug 25, 2017
1 parent a20ab4c commit c83a7b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions common/serial/numbers.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func ReadUint16(reader io.Reader) (uint16, error) {

func WriteUint16(value uint16) func([]byte) (int, error) {
return func(b []byte) (int, error) {
b = Uint16ToBytes(value, b[:0])
Uint16ToBytes(value, b[:0])
return 2, nil
}
}
Expand All @@ -37,7 +37,7 @@ func Uint32ToString(value uint32) string {

func WriteUint32(value uint32) func([]byte) (int, error) {
return func(b []byte) (int, error) {
b = Uint32ToBytes(value, b[:0])
Uint32ToBytes(value, b[:0])
return 4, nil
}
}
Expand Down
2 changes: 1 addition & 1 deletion common/serial/typed_message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ option go_package = "serial";
option java_package = "com.v2ray.core.common.serial";
option java_multiple_files = true;

// Serialized proto message along with its type name.
// TypedMessage is a serialized proto message along with its type name.
message TypedMessage {
// The name of the message type, retrieved from protobuf API.
string type = 1;
Expand Down

0 comments on commit c83a7b8

Please sign in to comment.