1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-22 23:45:24 +00:00

some typo fixes

note: there are other typos in external/ folder.
considering the fact that the folder "will be removed in future", I skipped those typos.
This commit is contained in:
DuckSoft 2020-07-17 18:09:24 +08:00
parent 81985d918f
commit 1525712214
No known key found for this signature in database
GPG Key ID: 7A3A9FA6E4FD4A8D
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ func TestBufferClear(t *testing.T) {
buffer.Clear()
if buffer.Len() != 0 {
t.Error("expect 0 lenght, but got ", buffer.Len())
t.Error("expect 0 length, but got ", buffer.Len())
}
}

View File

@ -35,7 +35,7 @@ func (s *Server) Type() interface{} {
return s.dispatcher.Type()
}
// Dispatch impliments routing.Dispatcher
// Dispatch implements routing.Dispatcher
func (s *Server) Dispatch(ctx context.Context, dest net.Destination) (*transport.Link, error) {
if dest.Address != muxCoolAddress {
return s.dispatcher.Dispatch(ctx, dest)

View File

@ -22,7 +22,7 @@ type Counter interface {
type Manager interface {
features.Feature
// RegisterCounter registers a new counter to the manager. The identifier string must not be emtpy, and unique among other counters.
// RegisterCounter registers a new counter to the manager. The identifier string must not be empty, and unique among other counters.
RegisterCounter(string) (Counter, error)
// GetCounter returns a counter by its identifier.
GetCounter(string) Counter