readme fix and replacing default prompt with DEFAULT_HOST

This commit is contained in:
MeexReay 2025-02-09 02:29:08 +03:00
parent 3ba2b30008
commit 7f3144be55
2 changed files with 4 additions and 4 deletions

View File

@ -4,6 +4,6 @@ better RAC client
## how to use
```bash
rustc main.rs -o main # build
./main # run
rustc main.rs # build
./main # run
```

View File

@ -75,7 +75,7 @@ fn get_input(prompt: &str, default: &str) -> String {
}
fn main() {
let host = get_input("Host (default: meex.lol:11234) > ", DEFAULT_HOST);
let host = get_input(&format!("Host (default: {}) > ", DEFAULT_HOST), DEFAULT_HOST);
let prefix = get_input("Prefix (default: none) > ", "");
thread::spawn({