Fix typos
This commit is contained in:
parent
9e6f22c196
commit
9ba3f885c4
2
cmd.go
2
cmd.go
|
@ -35,7 +35,7 @@ func printHelp() {
|
|||
minSepSpaceLen := 2 // min space between command and the description
|
||||
// Here comes the fun part
|
||||
// We are now *actually* printing the help
|
||||
fmt.Println("You can directy enter a url or link-index (number) at the prompt.")
|
||||
fmt.Println("You can directly enter a url or link-index (number) at the prompt.")
|
||||
fmt.Println()
|
||||
fmt.Println("Otherwise, there are plenty of useful commands you can use.")
|
||||
fmt.Println("Arguments are separated by spaces, and quoting with ' and \" is supported\nlike the shell, but escaping quotes is not support yet.")
|
||||
|
|
2
gelim.go
2
gelim.go
|
@ -31,7 +31,7 @@ var (
|
|||
|
||||
// QuotedFields is an alternative to strings.Fields (see:
|
||||
// https://golang.org/pkg/strings#Fields) that respects spaces between matching
|
||||
// pairs of quotation delimeters.
|
||||
// pairs of quotation delimiters.
|
||||
//
|
||||
// For instance, the quoted fields of the string "foo bar 'baz etc'" would be:
|
||||
// []string{"foo", "bar", "baz etc"}
|
||||
|
|
|
@ -40,7 +40,7 @@ var (
|
|||
// quoteStyle = color.New(color.Italic).SprintFunc()
|
||||
)
|
||||
|
||||
// GeminiParsedURL fetches u and retruns *GeminiResponse
|
||||
// GeminiParsedURL fetches u and returns *GeminiResponse
|
||||
func GeminiParsedURL(u url.URL) (res *GeminiResponse, err error) {
|
||||
host := u.Host
|
||||
// Connect to server
|
||||
|
|
|
@ -19,7 +19,7 @@ type SpartanResponse struct {
|
|||
connClosed bool
|
||||
}
|
||||
|
||||
// SpartanParsedURL fetches u and resturns a SpartanResponse
|
||||
// SpartanParsedURL fetches u and returns a SpartanResponse
|
||||
func SpartanParsedURL(u *url.URL) (res *SpartanResponse, err error) {
|
||||
host := u.Host
|
||||
if u.Port() == "" {
|
||||
|
|
Loading…
Reference in New Issue