Merge pull request #5246 from truongnh1992/removing-redundant-words

Remove duplicated words in comments
This commit is contained in:
Ganesh Vernekar 2019-02-21 10:45:25 +05:30 committed by GitHub
commit ded80bf4a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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