From 6d692d0dfcad33bef6f578dc01dd28346330a331 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Sat, 1 Feb 2025 12:51:32 -0500 Subject: [PATCH] Rename Group.toString() to Group.String() --- regex/matching.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regex/matching.go b/regex/matching.go index 104306f..975f228 100644 --- a/regex/matching.go +++ b/regex/matching.go @@ -40,15 +40,15 @@ func (m Match) String() string { for i, g := range m { if g.IsValid() { toRet += fmt.Sprintf("Group %d\n", i) - toRet += g.toString() + toRet += g.String() toRet += "\n" } } return toRet } -// Converts the Group into a string representation: -func (idx Group) toString() string { +// String converts the Group into a string representation. +func (idx Group) String() string { return fmt.Sprintf("%d\t%d", idx.StartIdx, idx.EndIdx) }