Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Jan 24, 2022
1 parent db5bace commit feaa6ed
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 feaa6ed

Please sign in to comment.