lib/fs: Comment typo

Skip-check: authors

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4354
This commit is contained in:
wangguoliang 2017-09-07 09:40:46 +00:00 committed by Jakob Borg
parent f7d2c58783
commit a9aa375109

View File

@ -71,7 +71,7 @@ func newBasicFilesystem(root string) *BasicFilesystem {
// rooted expands the relative path to the full path that is then used with os // rooted expands the relative path to the full path that is then used with os
// package. If the relative path somehow causes the final path to escape the root // package. If the relative path somehow causes the final path to escape the root
// directoy, this returns an error, to prevent accessing files that are not in the // directory, this returns an error, to prevent accessing files that are not in the
// shared directory. // shared directory.
func (f *BasicFilesystem) rooted(rel string) (string, error) { func (f *BasicFilesystem) rooted(rel string) (string, error) {
// The root must not be empty. // The root must not be empty.