Skip to content

Commit

Permalink
Fix Readme example formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarema committed Feb 8, 2022
1 parent f413697 commit bf032cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand All @@ -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(())
}
```
<!--
### Publish
Expand Down

0 comments on commit bf032cc

Please sign in to comment.