Skip to content

Commit 28b48f6

Browse files
Correct flags in helloworld and helloquic examples (#245)
* correct flag for helloworld example docs * correct flag for helloquic example docs * refer to -listen in helloquic flag error
1 parent 4e358c4 commit 28b48f6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

_examples/helloquic/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ entire stream content and echos it back to the client.
66

77
Server:
88
```
9-
go run helloquic.go -port 1234
9+
go run helloquic.go -listen 127.0.0.1:1234
1010
```
1111

1212
Client:

_examples/helloquic/helloquic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func main() {
4040
flag.Parse()
4141

4242
if (listen.Get().Port() > 0) == (len(*remoteAddr) > 0) {
43-
check(fmt.Errorf("either specify -port for server or -remote for client"))
43+
check(fmt.Errorf("either specify -listen for server or -remote for client"))
4444
}
4545

4646
if listen.Get().Port() > 0 {

_examples/helloworld/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ which replies back.
55

66
Server:
77
```
8-
go run helloworld.go -port 1234
8+
go run helloworld.go -listen 127.0.0.1:1234
99
```
1010

1111
Client:

0 commit comments

Comments
 (0)