From 800101da90c5b2d3f34978cbe1ef10fcfd642c6c Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 4 Dec 2023 01:17:40 +0900 Subject: [PATCH] text/v2: fix an error message Updates #2845 --- text/v2/multi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text/v2/multi.go b/text/v2/multi.go index 8eadbeb7a..92d517c29 100644 --- a/text/v2/multi.go +++ b/text/v2/multi.go @@ -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") } }