What is Nostr?
jex
npub1ru9…35qe
2024-01-23 01:35:18
in reply to nevent1q…fnph

jex on Nostr: or how bout we chain method calls? fn read_bitcoin_file() -> Result<f64, io::Error> { ...

or how bout we chain method calls?

fn read_bitcoin_file() -> Result<f64, io::Error> {
let mut bitcoin_amount = String::new();
File::open("bitcoin_amount_file.txt")?.read_to_string(&mut bitcoin_amount)?;
Ok(bitcoin_amount.trim().parse::<f64>().unwrap())
}
Author Public Key
npub1ru9hzql8n8nqkakcfxljd9kjtqsywfse6kcy2w78s89n77qqs3msgl35qe