Skip to content

Commit 4bf8d9f

Browse files
committed
fix: fix typo
1 parent 8f1ac3e commit 4bf8d9f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ func analyzeMapContents(fname string, stmt *Directive, term string) error {
443443
Line: &stmt.Line,
444444
}
445445
}
446-
if len(stmt.Args) != 1 && stmt.Directive != "range" {
446+
if len(stmt.Args) != 1 && stmt.Directive != "ranges" {
447447
return &ParseError{
448448
What: "invalid number of parameters",
449449
File: &fname,

parse_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ var parseFixtures = []parseFixture{
11091109
Line: 6,
11101110
Block: Directives{
11111111
{
1112-
Directive: "range",
1112+
Directive: "ranges",
11131113
Args: []string{},
11141114
Line: 7,
11151115
Block: Directives{},

testdata/configs/geo/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ events {
44

55
http {
66
geo $geo {
7-
range;
7+
ranges;
88
default 0;
99
192.168.1.0/24 1;
1010
127.0.0.1 2;

testdata/configs/geo/nginx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
],
3535
"block": [
3636
{
37-
"directive": "range",
37+
"directive": "ranges",
3838
"line": 7,
3939
"args": []
4040
},

testdata/configs/geo/xp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
],
3535
"block": [
3636
{
37-
"directive": "range",
37+
"directive": "ranges",
3838
"line": 7,
3939
"args": []
4040
},

0 commit comments

Comments
 (0)