Skip to content

Commit

Permalink
thes -> thesaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
CascadingRadium committed Dec 12, 2024
1 parent f9896a9 commit 1b5ea94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cmd/zap/cmd/synonym.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
)

var thesCmd = &cobra.Command{
Use: "thes [path] [name]",
Short: "thes prints the thesaurus with the specified name",
Long: `The thes command lets you print the thesaurus with the specified name.`,
Use: "thesaurus [path] [name]",
Short: "thesaurus prints the thesaurus with the specified name",
Long: `The thesaurus command lets you print the thesaurus with the specified name.`,
RunE: func(cmd *cobra.Command, args []string) error {
pos := segment.FieldsIndexOffset()
if pos == 0 {
Expand Down
5 changes: 2 additions & 3 deletions section_synonym.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,9 @@ func (so *synonymIndexOpaque) realloc() {
for _, syn := range synonyms {
_, exists := termSynMap[syn]
if !exists {
termSynMap[syn] = sidNext
synTermMap[sidNext] = syn
sidNext++
sidPlus1 := sidNext
termSynMap[syn] = sidPlus1
synTermMap[sidPlus1] = syn
}
}
})
Expand Down

0 comments on commit 1b5ea94

Please sign in to comment.