Fix doc comment typo.
Change-Id: I19b4b553b01823da0c1015d779f1f05b2c2cfb5b
This commit is contained in:
parent
8234d12ed0
commit
5122dc6cc0
|
@ -170,12 +170,11 @@ func PanicOnCollectError(b bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// EnableCollectChecks enables (or disables) additional consistency checks
|
// EnableCollectChecks enables (or disables) additional consistency checks
|
||||||
// during metrics collection. By default, These additional checks are not
|
// during metrics collection. These additional checks are not enabled by default
|
||||||
// enabled by default because they inflict a performance penalty and the errors
|
// because they inflict a performance penalty and the errors they check for can
|
||||||
// they check for can only happen if the used Metric and Collector types have
|
// only happen if the used Metric and Collector types have internal programming
|
||||||
// internal programming errors. It can be helpful to enable these checks while
|
// errors. It can be helpful to enable these checks while working with custom
|
||||||
// working with custom Collectors or Metrics whose correctness is not well
|
// Collectors or Metrics whose correctness is not well established yet.
|
||||||
// established yet.
|
|
||||||
func EnableCollectChecks(b bool) {
|
func EnableCollectChecks(b bool) {
|
||||||
defRegistry.collectChecksEnabled = b
|
defRegistry.collectChecksEnabled = b
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue