Remove duplicated words in comments

Although it is spelling mistakes, it might make an affects
while reading.

Co-Authored-By: Kim Bao Long longkb@vn.fujitsu.com
Signed-off-by: Nguyen Hai Truong <truongnh@vn.fujitsu.com>
This commit is contained in:
Nguyen Hai Truong 2019-02-20 17:41:02 -08:00
parent c8a1a5a93c
commit aed9ea144a
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ label with the host:port of the target (preferably an IP address to avoid DNS
lookups). No other labelnames should be exposed.
It is very common for initial pull requests for new SDs to include hardcoded
assumptions that make sense for the the author's setup. SD should be generic,
assumptions that make sense for the author's setup. SD should be generic,
any customisation should be handled via relabelling. There should be basically
no business logic, filtering, or transformations of the data from the SD beyond
that which is needed to fit it into the metadata data model.

View File

@ -935,7 +935,7 @@ func (p *parser) expectType(node Node, want ValueType, context string) {
// check the types of the children of each node and raise an error
// if they do not form a valid node.
//
// Some of these checks are redundant as the the parsing stage does not allow
// Some of these checks are redundant as the parsing stage does not allow
// them, but the costs are small and might reveal errors when making changes.
func (p *parser) checkType(node Node) (typ ValueType) {
// For expressions the type is determined by their Type function.

View File

@ -74,7 +74,7 @@ func TestTargetOffset(t *testing.T) {
t.Log(buckets)
// Calculate whether the the number of targets per bucket
// Calculate whether the number of targets per bucket
// does not differ more than a given tolerance.
avg := len(offsets) / len(buckets)
tolerance := 0.15