mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-05-06 13:38:04 +03:00
readme fix and replacing default prompt with DEFAULT_HOST
This commit is contained in:
parent
3ba2b30008
commit
7f3144be55
@ -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
|
||||
```
|
||||
|
2
main.rs
2
main.rs
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user