-
Notifications
You must be signed in to change notification settings - Fork 351
Open
Labels
Description
https://pkg.go.dev/cuelang.org/go@v0.16.0/pkg/regexp#Find states
Find returns a list holding the text of the leftmost match in b of the regular expression. A return value of bottom indicates no match.
but given that the function signature looks like func Find(pattern, s string) (string, error), I wonder - should the documentation really say it is returning a list? I would expect something like this:
Find returns a string holding the text of the leftmost match in b of the regular expression. A return value of bottom indicates no match.
Reactions are currently unavailable