Browse Source
cmd: main: fix minor doc typos (#4082)
Fixed typos in the documentation
master
Simão Gomes Viana
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
cmd/main.go
|
@ -49,7 +49,7 @@ func init() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Main implements the main function of the caddy command.
|
|
|
// Main implements the main function of the caddy command.
|
|
|
// Call this if Caddy is to be the main() if your program.
|
|
|
// Call this if Caddy is to be the main() of your program.
|
|
|
func Main() { |
|
|
func Main() { |
|
|
switch len(os.Args) { |
|
|
switch len(os.Args) { |
|
|
case 0: |
|
|
case 0: |
|
@ -311,7 +311,7 @@ func (f Flags) Int(name string) int { |
|
|
|
|
|
|
|
|
// Float64 returns the float64 representation of the
|
|
|
// Float64 returns the float64 representation of the
|
|
|
// flag given by name. It returns false if the flag
|
|
|
// flag given by name. It returns false if the flag
|
|
|
// is not a float63 type. It panics if the flag is
|
|
|
// is not a float64 type. It panics if the flag is
|
|
|
// not in the flag set.
|
|
|
// not in the flag set.
|
|
|
func (f Flags) Float64(name string) float64 { |
|
|
func (f Flags) Float64(name string) float64 { |
|
|
val, _ := strconv.ParseFloat(f.String(name), 64) |
|
|
val, _ := strconv.ParseFloat(f.String(name), 64) |
|
|