From fe5656e3735decf5db699410cadc43477e95b432 Mon Sep 17 00:00:00 2001 From: Aryan Dhotre <85390033+theredditbandit@users.noreply.github.com> Date: Thu, 25 Jan 2024 04:03:36 +0530 Subject: [PATCH] fix incorrect documentation for the `WithShowErrors` method (#102) * fix documentation * better wording --- form.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/form.go b/form.go index 22213ba4..f2907fce 100644 --- a/form.go +++ b/form.go @@ -202,10 +202,10 @@ func (f *Form) WithShowHelp(v bool) *Form { return f } -// WithShowErrors sets whether or not the form should show help. +// WithShowErrors sets whether or not the form should show errors. // -// This allows the form groups and field to show what keybindings are available -// to the user. +// This allows the form groups and fields to show errors when the Validate +// function returns an error. func (f *Form) WithShowErrors(v bool) *Form { for _, group := range f.groups { group.WithShowErrors(v)