Skip to content

Commit 2a1e747

Browse files
committed
Update README.md
1 parent 78032e6 commit 2a1e747

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Add the following dependency to your POM:
2626

2727
How to perform basic parsing of the following Nginx config:
2828
```java
29-
NgxConfig conf = TestUtils.parse("/etc/nginx/nginx.conf");
29+
NgxConfig conf = NgxConfig.read("/etc/nginx/nginx.conf");
3030
NgxParam workers = conf.findParam("worker_processes"); // Ex.1
3131
workers.getValue(); // "1"
3232
NgxParam listen = conf.findParam("http", "server", "listen"); // Ex.2
@@ -69,6 +69,8 @@ rtmp {
6969
##### Dumper
7070

7171
```java
72+
NgxConfig conf = NgxConfig.read("/etc/nginx/nginx.conf");
73+
// ...
7274
NgxDumper dumper = new NgxDumper(conf);
7375
return dumper.dump(System.out);
7476
```

0 commit comments

Comments
 (0)