From 3c56fe78a764427178fb4c27fe21d6f0fb7189a4 Mon Sep 17 00:00:00 2001 From: "s.kamardin" Date: Tue, 1 Dec 2015 17:24:31 +0300 Subject: [PATCH] Rename arg --- glob.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glob.go b/glob.go index e4591c0..84b1e67 100644 --- a/glob.go +++ b/glob.go @@ -44,8 +44,8 @@ type Glob interface { // `?` matches any single non-separator character // c matches character c (c != `*`, `**`, `?`, `\`) // `\` c matches character c -func New(pattern string, d ...string) Glob { - chunks := parse(pattern, nil, strings.Join(d, ""), false) +func New(pattern string, separators ...string) Glob { + chunks := parse(pattern, nil, strings.Join(separators, ""), false) switch len(chunks) { case 1: