Skip to content

Commit 2f39f09

Browse files
committed
improve comments
1 parent 1fb0ba3 commit 2f39f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context_fs_go1.16.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func fsFile(c Context, file string, filesystem fs.FS) error {
3333

3434
fi, _ := f.Stat()
3535
if fi.IsDir() {
36-
file = filepath.ToSlash(filepath.Join(file, indexPage)) // ToSlash is necessary for Windows
36+
file = filepath.ToSlash(filepath.Join(file, indexPage)) // ToSlash is necessary for Windows. fs.Open and os.Open are different in that aspect.
3737
f, err = filesystem.Open(file)
3838
if err != nil {
3939
return ErrNotFound

0 commit comments

Comments
 (0)