fix(docs): fix crate.md example

This commit is contained in:
MeexReay 2025-06-24 16:14:52 +03:00
parent c18e141880
commit 032f8eb900

View File

@ -34,7 +34,12 @@ use bRAC::proto::*;
use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> {
let mut conn = connect("rac://meex.lol", None)?; // read docs/url.md
let mut conn = connect("wracs://meex.lol", None)?;
// read docs/url.md
// this keep-alive way with only one connection
// works only for WRAC, for a regular RAC,
// you have to connect to the server on each request
send_message(&mut conn, "<dude> hi RAC-loving kikes!")?;
register_user(&mut conn, "dude", "password")?;
@ -57,4 +62,4 @@ fn main() -> Result<(), Box<dyn Error>> {
## See more
- [rac-rs - A Rust client library for RAC protocol. (with async support)](https://github.com/kostya-zero/rac-rs)
- [rac-rs - A Rust client library for RAC protocol. (with async support)](https://github.com/kostya-zero/rac-rs)