Skip to content

Commit 09a180d

Browse files
committed
docs
1 parent 162d00e commit 09a180d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Finally, if you are so inclined, you can create your own `caps.Converter`. This
143143
could be as simple as implementing the single `Convert` method, calling
144144
`caps.DefaultConverter.Convert`, and then modifying the result.
145145

146-
### Support for special case unicode (e.g. Turkish, Azeri)
146+
## Support for special case unicode (e.g. Turkish, Azeri)
147147

148148
caps supports Turkish and Azeri through the `token.Caser` interface. It is
149149
satisfied by `unicode.TurkishCase` and `unicode.AzeriCase`. `token.TurkishCaser`

index/index.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package index contains a trie index used by Converter to lookup Replacements.
12
package index
23

34
import (
@@ -21,7 +22,7 @@ func (ir IndexedReplacement) HasValue() bool {
2122
return !ir.IsEmpty()
2223
}
2324

24-
// Index is a double trie (forward and backward indexed) of token.Token.
25+
// Index is a trie index used by Converter to lookup Replacements.
2526
type Index struct {
2627
value IndexedReplacement
2728
nodes map[rune]*Index

text/text.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Package text contains a single Text type with functions from caps and strings
2+
// as methods.
3+
//
4+
// All methods return new values and do not mutate the existing Text.
15
package text
26

37
import (

0 commit comments

Comments
 (0)