From 5e4be7920b8bfddb98d6a3b8c7b98b0654e88f22 Mon Sep 17 00:00:00 2001 From: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Date: Mon, 2 Dec 2024 22:13:45 +0100 Subject: [PATCH] interp: improve method signature this is a zero code changes. The signature was already the right one. We are just using an alias, that will make things clearer. --- interp/builtin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interp/builtin.go b/interp/builtin.go index 4b7e1b03..061041fb 100644 --- a/interp/builtin.go +++ b/interp/builtin.go @@ -902,7 +902,7 @@ func (r *Runner) builtinCode(ctx context.Context, pos syntax.Pos, name string, a // mapfileSplit returns a suitable Split function for a [bufio.Scanner]; // the code is mostly stolen from [bufio.ScanLines]. -func mapfileSplit(delim byte, dropDelim bool) func(data []byte, atEOF bool) (advance int, token []byte, err error) { +func mapfileSplit(delim byte, dropDelim bool) bufio.SplitFunc { return func(data []byte, atEOF bool) (advance int, token []byte, err error) { if atEOF && len(data) == 0 { return 0, nil, nil