fn print(s: &str) {
    if cfg!(target_arch = "wasm32") {
        log(s);
    } else {
        println!("{}", s);
    }
}
/// Safety wrapper around logging that will detect
/// if we should use log or println!
Safety wrapper around logging that will detect
if we should use log or println!
Safety wrapper around logging that will detect if we should use log or println!
fn print(s: &str) {
    if cfg!(target_arch = "wasm32") {
        log(s);
    } else {
        println!("{}", s);
    }
}
fn print ( s : & str ) { if cfg ! ( target_arch " " ) { log ( s ) ; } else { println ! ( " " s ) ; } }
Safety wrapper around logging that will detect
if we should use log or println!
Safety wrapper around logging that will detect if we should use log or println!
s
&str
s
&str