Skip to content

Commit 0b7e1fb

Browse files
cuishuanggopherbot
authored andcommitted
all: fix a few function names on comments
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]>
1 parent 8021a29 commit 0b7e1fb

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

dict/dict.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (c *Client) Define(dict, word string) ([]*Defn, error) {
140140
return def, err
141141
}
142142

143-
// Fields returns the fields in s.
143+
// fields returns the fields in s.
144144
// Fields are space separated unquoted words
145145
// or quoted with single or double quote.
146146
func fields(s string) ([]string, error) {

html/parse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ func inHeadIM(p *parser) bool {
734734
return false
735735
}
736736

737-
// 12.2.6.4.5.
737+
// Section 12.2.6.4.5.
738738
func inHeadNoscriptIM(p *parser) bool {
739739
switch p.tok.Type {
740740
case DoctypeToken:

webdav/prop.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ var liveProps = map[xml.Name]struct {
162162

163163
// TODO(nigeltao) merge props and allprop?
164164

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

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

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

275-
// Patch patches the properties of resource name. The return values are
275+
// patch patches the properties of resource name. The return values are
276276
// constrained in the same manner as DeadPropsHolder.Patch.
277277
func patch(ctx context.Context, fs FileSystem, ls LockSystem, name string, patches []Proppatch) ([]Propstat, error) {
278278
conflict := false

webdav/xml.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func escape(s string) string {
113113
return s
114114
}
115115

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

0 commit comments

Comments
 (0)