Fix typos in file.go

"retuns" => "returns"
This commit is contained in:
Christian Muehlhaeuser 2020-10-01 08:52:41 +00:00
parent 0273362499
commit c7a9850084
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ type File interface {
// Info returns the here.Info of the file // Info returns the here.Info of the file
Info() here.Info Info() here.Info
// Name retuns the name of the file // Name returns the name of the file
Name() string Name() string
// Open implements the http.FileSystem interface. A FileSystem implements access to a collection of named files. The elements in a file path are separated by slash ('/', U+002F) characters, regardless of host operating system convention. // Open implements the http.FileSystem interface. A FileSystem implements access to a collection of named files. The elements in a file path are separated by slash ('/', U+002F) characters, regardless of host operating system convention.

View File

@ -103,7 +103,7 @@ func (f File) Stat() (os.FileInfo, error) {
return f.info, nil return f.info, nil
} }
// Name retuns the name of the file in pkger format // Name returns the name of the file in pkger format
func (f File) Name() string { func (f File) Name() string {
return f.path.String() return f.path.String()
} }

View File

@ -29,7 +29,7 @@ func (f *File) Info() here.Info {
return f.her return f.her
} }
// Name retuns the name of the file in pkger format // Name returns the name of the file in pkger format
func (f File) Name() string { func (f File) Name() string {
return f.path.String() return f.path.String()
} }