Skip to content

Commit 02356a8

Browse files
samiam2013Copilot
andauthored
Update enumer.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a8bbe9f commit 02356a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

enumer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "fmt"
44

55
// Arguments to format are:
66
// [1]: type name
7-
// [2]: error creation (either fmt.Errorf or errors.Join)
7+
// [2]: complete error expression
88
const stringNameToValueMethod = `// %[1]sString retrieves an enum value from the enum constants string name.
99
// Throws an error if the param is not part of the enum.
1010
func %[1]sString(s string) (%[1]s, error) {

0 commit comments

Comments
 (0)