From cd29d927a6ad24400eee17e332c36c7f8db68eb0 Mon Sep 17 00:00:00 2001 From: silvenac Date: Wed, 12 Nov 2025 10:46:39 -0500 Subject: [PATCH] Clarify in SetAtoms docs that atoms are initially empty --- tagformat/caseconversion/case_conversion.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tagformat/caseconversion/case_conversion.go b/tagformat/caseconversion/case_conversion.go index ea12b27..cf7ad92 100644 --- a/tagformat/caseconversion/case_conversion.go +++ b/tagformat/caseconversion/case_conversion.go @@ -81,8 +81,10 @@ func (g *GoCaseConverter) AddInitialism(initialism ...string) { g.SetInitialisms(append(g.initialisms, initialism...)) } -// SetAtoms replaces the set of atoms used by the GoCaseConverter with the -// argument. Atoms will specifically not be split at word boundaries and should +// SetAtoms sets the atoms used by the GoCaseConverter with the argument. +// If any atoms were previously set, SetAtoms replaces them. The set of atoms is +// initially empty, unlike the set of initialisms. +// Atoms will specifically not be split at word boundaries and should // be provided in the exported-name format as in "ABTest". Attemping to add an // atom less than two characters in length will cause a panic. Also, any // duplicates in the list of atoms will be removed.