Update documentation

This commit is contained in:
Adnan Maolood
2020-10-24 15:29:12 -04:00
parent 909e0c857a
commit ca118681c0
2 changed files with 3 additions and 3 deletions

4
fs.go
View File

@@ -14,8 +14,8 @@ func init() {
mime.AddExtensionType(".gemini", "text/gemini")
}
// FileServer takes a filesystem and returns a Handler which uses that filesystem.
// The returned Handler sanitizes paths before handling them.
// FileServer takes a filesystem and returns a Responder which uses that filesystem.
// The returned Responder sanitizes paths before handling them.
func FileServer(fsys FS) Responder {
return fsHandler{fsys}
}