From bf032cc74f3432501a1f6d7eed046c099598511c Mon Sep 17 00:00:00 2001 From: Jarema Date: Mon, 7 Feb 2022 22:09:38 +0100 Subject: [PATCH] Fix Readme example formatting --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e5f7d7fd7..6b9daa08d 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ as well! Basic connections, and those with options. The compiler will force these to be correct. ```rust -# fn main() -> std::io::Result<()> { +fn main() -> std::io::Result<()> { let nc = nats::connect("demo.nats.io")?; let nc2 = nats::Options::with_user_pass("derek", "s3cr3t!") @@ -52,8 +52,8 @@ let nc3 = nats::Options::with_credentials("path/to/my.creds") let nc4 = nats::Options::new() .add_root_certificate("my-certs.pem") .connect("tls://demo.nats.io:4443")?; -# Ok(()) -# } +Ok(()) +} ```