Skip to content

Commit 5b7de34

Browse files
thehanslevithehanslevi
andauthored
Fix emtpy typos in validation messages (#147)
Co-authored-by: thehanslevi <hanslevi.llms@gmail.com>
1 parent 088ce03 commit 5b7de34

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/html/Attribute.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub const Rule = union(enum) {
9090
/// An entry in a static list of options
9191
list: List,
9292

93-
/// A valid url. Value decides if emtpy string is allowed or not.
93+
/// A valid url. Value decides if empty string is allowed or not.
9494
url: enum { empty, not_empty },
9595

9696
/// Custom validation
@@ -604,7 +604,7 @@ pub fn validateMime(
604604
if (mime_type.len == 0) return errors.append(gpa, .{
605605
.tag = .{
606606
.invalid_attr_value = .{
607-
.reason = "emtpy MIME type",
607+
.reason = "empty MIME type",
608608
},
609609
},
610610
.main_location = .{
@@ -658,7 +658,7 @@ pub fn validateMime(
658658
if (subtype.len == 0) return errors.append(gpa, .{
659659
.tag = .{
660660
.invalid_attr_value = .{
661-
.reason = "emtpy MIME subtype",
661+
.reason = "empty MIME subtype",
662662
},
663663
},
664664
.main_location = .{
@@ -702,7 +702,7 @@ pub fn validateMime(
702702
if (param_name.len == 0) return errors.append(gpa, .{
703703
.tag = .{
704704
.invalid_attr_value = .{
705-
.reason = "emtpy MIME parameter name",
705+
.reason = "empty MIME parameter name",
706706
},
707707
},
708708
.main_location = .{

0 commit comments

Comments
 (0)