Skip to content

Commit 2899ea2

Browse files
Update modules/htmlutil/html.go
Co-authored-by: silverwind <[email protected]> Signed-off-by: wxiaoguang <[email protected]>
1 parent 0e03afb commit 2899ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/htmlutil/html.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func ParseSizeAndClass(defaultSize int, defaultClass string, others ...any) (int
3333

3434
func HTMLFormat(s template.HTML, rawArgs ...any) template.HTML {
3535
if !strings.Contains(string(s), "%") || len(rawArgs) == 0 {
36-
panic("HTMLFormat requires at least one argument, don't abuse it")
36+
panic("HTMLFormat requires one or more arguments")
3737
}
3838
args := slices.Clone(rawArgs)
3939
for i, v := range args {

0 commit comments

Comments
 (0)