text/v2: fix an error message

Updates #2845
This commit is contained in:
Hajime Hoshi 2023-12-04 01:17:40 +09:00
parent 81e0e61a43
commit 800101da90

View File

@ -42,7 +42,7 @@ func NewMultiFace(faces ...Face) (*MultiFace, error) {
d := faces[0].direction()
for _, f := range faces[1:] {
if f.direction() != d {
return nil, errors.New("text: all the faces' directions must agree")
return nil, errors.New("text: all the faces' directions must agree at NewMultiFace")
}
}