fix some typos

Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
cuishuang 2022-06-01 14:48:46 +08:00
parent b953ea196a
commit f81b062786
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ var (
separator.`)) separator.`))
allowUnknownFields = flags.Bool("allow-unknown-fields", false, prettify(` allowUnknownFields = flags.Bool("allow-unknown-fields", false, prettify(`
When true, the request contents, if 'json' format is used, allows When true, the request contents, if 'json' format is used, allows
unkown fields to be present. They will be ignored when parsing unknown fields to be present. They will be ignored when parsing
the request.`)) the request.`))
connectTimeout = flags.Float64("connect-timeout", 0, prettify(` connectTimeout = flags.Float64("connect-timeout", 0, prettify(`
The maximum time, in seconds, to wait for connection to be established. The maximum time, in seconds, to wait for connection to be established.

View File

@ -428,7 +428,7 @@ type DefaultEventHandler struct {
// the given output. If verbose is true, all events are logged. Otherwise, only // the given output. If verbose is true, all events are logged. Otherwise, only
// response messages are logged. // response messages are logged.
// //
// Deprecated: NewDefaultEventHandler exists for compatability. // Deprecated: NewDefaultEventHandler exists for compatibility.
// It doesn't allow fine control over the `VerbosityLevel` // It doesn't allow fine control over the `VerbosityLevel`
// and provides only 0 and 1 options (which corresponds to the `verbose` argument). // and provides only 0 and 1 options (which corresponds to the `verbose` argument).
// Use DefaultEventHandler{} initializer directly. // Use DefaultEventHandler{} initializer directly.