Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Jan 15, 2022
1 parent 1fb0ba3 commit 2f39f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context_fs_go1.16.go
Expand Up @@ -33,7 +33,7 @@ func fsFile(c Context, file string, filesystem fs.FS) error {

fi, _ := f.Stat()
if fi.IsDir() {
file = filepath.ToSlash(filepath.Join(file, indexPage)) // ToSlash is necessary for Windows
file = filepath.ToSlash(filepath.Join(file, indexPage)) // ToSlash is necessary for Windows. fs.Open and os.Open are different in that aspect.
f, err = filesystem.Open(file)
if err != nil {
return ErrNotFound
Expand Down

0 comments on commit 2f39f09

Please sign in to comment.