diff --git a/forgejo/org.go b/forgejo/org.go index 999fd02..e5e2a3a 100644 --- a/forgejo/org.go +++ b/forgejo/org.go @@ -97,7 +97,7 @@ func (opt CreateOrgOption) Validate() error { return fmt.Errorf("empty org name") } if len(opt.Visibility) != 0 && !checkVisibilityOpt(opt.Visibility) { - return fmt.Errorf("infalid bisibility option") + return fmt.Errorf("invalid visibility option") } return nil } @@ -128,7 +128,7 @@ type EditOrgOption struct { // Validate the EditOrgOption struct func (opt EditOrgOption) Validate() error { if len(opt.Visibility) != 0 && !checkVisibilityOpt(opt.Visibility) { - return fmt.Errorf("infalid bisibility option") + return fmt.Errorf("invalid visibility option") } return nil }