typofix - https://github.com/vlajos/misspell_fixer
This commit is contained in:
@@ -148,7 +148,7 @@ func NewFieldTooLong(field string, value interface{}, maxLength int) *Validation
|
||||
type ValidationErrorList []error
|
||||
|
||||
// Prefix adds a prefix to the Field of every ValidationError in the list.
|
||||
// Also adds prefixes to multiple fields if you send an or seperator.
|
||||
// Also adds prefixes to multiple fields if you send an or separator.
|
||||
// Returns the list for convenience.
|
||||
func (list ValidationErrorList) Prefix(prefix string) ValidationErrorList {
|
||||
for i := range list {
|
||||
|
@@ -166,7 +166,7 @@ func (p *Parser) parseInsideAction(cur *ListNode) error {
|
||||
p.backup()
|
||||
return p.parseIdentifier(cur)
|
||||
default:
|
||||
return fmt.Errorf("unrecognized charactor in action: %#U", r)
|
||||
return fmt.Errorf("unrecognized character in action: %#U", r)
|
||||
}
|
||||
return p.parseInsideAction(cur)
|
||||
}
|
||||
|
@@ -107,7 +107,7 @@ type failParserTest struct {
|
||||
func TestFailParser(t *testing.T) {
|
||||
failParserTests := []failParserTest{
|
||||
{"unclosed action", "{.hello", "unclosed action"},
|
||||
{"unrecognized charactor", "{*}", "unrecognized charactor in action: U+002A '*'"},
|
||||
{"unrecognized character", "{*}", "unrecognized character in action: U+002A '*'"},
|
||||
{"invalid number", "{+12.3.0}", "cannot parse number +12.3.0"},
|
||||
{"unterminated array", "{[1}", "unterminated array"},
|
||||
{"invalid index", "{[::-1]}", "invalid array index ::-1"},
|
||||
|
@@ -179,7 +179,7 @@ func rewriteHTML(reader io.Reader, writer io.Writer, urlRewriter func(string) st
|
||||
return nil
|
||||
}
|
||||
|
||||
// rewriteResponse modifies an HTML response by updating absolute links refering
|
||||
// rewriteResponse modifies an HTML response by updating absolute links referring
|
||||
// to the original host to instead refer to the proxy transport.
|
||||
func (t *Transport) rewriteResponse(req *http.Request, resp *http.Response) (*http.Response, error) {
|
||||
origBody := resp.Body
|
||||
|
Reference in New Issue
Block a user