1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-18 03:29:12 -04:00

fix some typo (#1482)

This commit is contained in:
Bo He
2021-12-27 12:33:08 +08:00
committed by GitHub
parent 423d566024
commit b057a37fd6
13 changed files with 18 additions and 18 deletions

View File

@@ -64,7 +64,7 @@ func init() {
}
return loadJSONPB(bytes.NewReader(data))
default:
return nil, newError("unknow type")
return nil, newError("unknown type")
}
},
}))

View File

@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
/*
Package merge provides the capbility to merge multiple
Package merge provides the capability to merge multiple
JSON files or contents into one output.
Merge Rules:

View File

@@ -58,7 +58,7 @@ func Merge(input interface{}, m map[string]interface{}) error {
return err
}
default:
return newError("unknow merge input type")
return newError("unknown merge input type")
}
return nil
}

View File

@@ -52,7 +52,7 @@ func makeToJSONMergeFunc(converter func(v []byte) ([]byte, error)) MergeFunc {
return err
}
default:
return newError("unknow merge input type")
return newError("unknown merge input type")
}
return nil
}

View File

@@ -34,7 +34,7 @@ type strategyLeastLoadConfig struct {
Baselines []duration.Duration `json:"baselines,omitempty"`
// expected nodes count to select
Expected int32 `json:"expected,omitempty"`
// max acceptable rtt, filter away high delay nodes. defalut 0
// max acceptable rtt, filter away high delay nodes. default 0
MaxRTT duration.Duration `json:"maxRTT,omitempty"`
// acceptable failure rate
Tolerance float64 `json:"tolerance,omitempty"`

View File

@@ -63,7 +63,7 @@ func init() {
}
return loadV2JsonPb(data)
default:
return nil, newError("unknow type")
return nil, newError("unknown type")
}
},
}))