Skip to content

Commit

Permalink
docs: fix examples section of README
Browse files Browse the repository at this point in the history
  • Loading branch information
w-henderson authored and djc committed Aug 27, 2023
1 parent b4fd5aa commit a31b872
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,18 @@ let mut stream = connector.connect(dnsname, stream).await?;

### Client Example Program

See [examples/client](examples/client/src/main.rs). You can run it with:
See [examples/client.rs](examples/client.rs). You can run it with:

```sh
cd examples/client
cargo run -- hsts.badssl.com
cargo run --example client -- hsts.badssl.com
```

### Server Example Program

See [examples/server](examples/server/src/main.rs). You can run it with:
See [examples/server.rs](examples/server.rs). You can run it with:

```sh
cd examples/server
cargo run -- 127.0.0.1:8000 --cert mycert.der --key mykey.der
cargo run --example server -- 127.0.0.1:8000 --cert mycert.der --key mykey.der
```

### License & Origin
Expand Down

0 comments on commit a31b872

Please sign in to comment.