Skip to content

Commit

Permalink
all: fix a few function names on comments
Browse files Browse the repository at this point in the history
Change-Id: I6c853dd402d296701e38289bbc418730b068dde8
Reviewed-on: https://go-review.googlesource.com/c/net/+/441716
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: Joedian Reid <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
  • Loading branch information
cuishuang authored and gopherbot committed Oct 12, 2022
1 parent 8021a29 commit 0b7e1fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dict/dict.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (c *Client) Define(dict, word string) ([]*Defn, error) {
return def, err
}

// Fields returns the fields in s.
// fields returns the fields in s.
// Fields are space separated unquoted words
// or quoted with single or double quote.
func fields(s string) ([]string, error) {
Expand Down
2 changes: 1 addition & 1 deletion html/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ func inHeadIM(p *parser) bool {
return false
}

// 12.2.6.4.5.
// Section 12.2.6.4.5.
func inHeadNoscriptIM(p *parser) bool {
switch p.tok.Type {
case DoctypeToken:
Expand Down
8 changes: 4 additions & 4 deletions webdav/prop.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ var liveProps = map[xml.Name]struct {

// TODO(nigeltao) merge props and allprop?

// Props returns the status of the properties named pnames for resource name.
// props returns the status of the properties named pnames for resource name.
//
// Each Propstat has a unique status and each property name will only be part
// of one Propstat element.
Expand Down Expand Up @@ -213,7 +213,7 @@ func props(ctx context.Context, fs FileSystem, ls LockSystem, name string, pname
return makePropstats(pstatOK, pstatNotFound), nil
}

// Propnames returns the property names defined for resource name.
// propnames returns the property names defined for resource name.
func propnames(ctx context.Context, fs FileSystem, ls LockSystem, name string) ([]xml.Name, error) {
f, err := fs.OpenFile(ctx, name, os.O_RDONLY, 0)
if err != nil {
Expand Down Expand Up @@ -246,7 +246,7 @@ func propnames(ctx context.Context, fs FileSystem, ls LockSystem, name string) (
return pnames, nil
}

// Allprop returns the properties defined for resource name and the properties
// allprop returns the properties defined for resource name and the properties
// named in include.
//
// Note that RFC 4918 defines 'allprop' to return the DAV: properties defined
Expand All @@ -272,7 +272,7 @@ func allprop(ctx context.Context, fs FileSystem, ls LockSystem, name string, inc
return props(ctx, fs, ls, name, pnames)
}

// Patch patches the properties of resource name. The return values are
// patch patches the properties of resource name. The return values are
// constrained in the same manner as DeadPropsHolder.Patch.
func patch(ctx context.Context, fs FileSystem, ls LockSystem, name string, patches []Proppatch) ([]Propstat, error) {
conflict := false
Expand Down
2 changes: 1 addition & 1 deletion webdav/xml.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func escape(s string) string {
return s
}

// Next returns the next token, if any, in the XML stream of d.
// next returns the next token, if any, in the XML stream of d.
// RFC 4918 requires to ignore comments, processing instructions
// and directives.
// http://www.webdav.org/specs/rfc4918.html#property_values
Expand Down

0 comments on commit 0b7e1fb

Please sign in to comment.