Skip to content

Commit 91512a4

Browse files
committed
Fix comments
1 parent 08b2061 commit 91512a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fontscan/fontmap.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ func (fm *FontMap) resolveAllForLang(candidates []int, lang LangID) []*font.Face
548548
return faces
549549
}
550550

551-
// returns nil if no candidates supports the string `s`
551+
// returns nil if no candidates support the string `s`
552552
func (fm *FontMap) resolveForString(candidates []int, s string) *font.Face {
553553
var rs RuneSet
554554
for _, r := range s {
@@ -572,7 +572,7 @@ func (fm *FontMap) resolveForString(candidates []int, s string) *font.Face {
572572
return nil
573573
}
574574

575-
// returns all faces where candidates supports the string `s`
575+
// returns all faces where candidates support the string `s`
576576
func (fm *FontMap) resolveAllForString(candidates []int, s string) []*font.Face {
577577
var rs RuneSet
578578
for _, r := range s {
@@ -724,7 +724,7 @@ func (fm *FontMap) ResolveAllFacesForLang(lang LangID) []*font.Face {
724724
return fm.resolveAllForLang(fm.candidates.combine(), lang)
725725
}
726726

727-
// ResolveFacesForString returns the first face supporting the given string
727+
// ResolveFaceForString returns the first face supporting the given string
728728
// (for the actual query).
729729
//
730730
// The matching logic is similar to the one used by [ResolveFace].
@@ -774,7 +774,7 @@ func (fm *FontMap) ResolveFaceForString(s string) *font.Face {
774774
return fm.firstFace
775775
}
776776

777-
// ResolveAllFacesForLang returns all faces supporting the given string
777+
// ResolveAllFacesForString returns all faces supporting the given string
778778
// (for the actual query).
779779
func (fm *FontMap) ResolveAllFacesForString(s string) []*font.Face {
780780
// no-op if already built

0 commit comments

Comments
 (0)