From a31b872608c898ce682faad1af7449c28dbc20cc Mon Sep 17 00:00:00 2001 From: William Henderson Date: Sun, 27 Aug 2023 10:11:58 +0100 Subject: [PATCH] docs: fix examples section of README --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e4220c5f..74902e60 100644 --- a/README.md +++ b/README.md @@ -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