Compare commits

..

3 Commits

2 changed files with 2 additions and 4 deletions

4
go.mod
View File

@@ -1,5 +1,3 @@
module code.capytal.cc/loreddev/x
go 1.25.2
require golang.org/x/net v0.46.0
go 1.23.3

View File

@@ -228,7 +228,7 @@ func (t *HotTemplate) run() (Template, error) {
err = fmt.Errorf("HotTemplate: first argument is not of type fs.FS")
break
}
patterns, ok := method.args[1].([]string)
patterns, ok := method.args[0].([]string)
if !ok {
err = fmt.Errorf("HotTemplate: second argument is not of type []string")
break