Function emscripten_functions::console::error
source · pub fn error<T>(string: T)where
T: AsRef<str>,
Expand description
Prints the given string using the console.error()
function.
Arguments
string
- The string to print.
Examples
error("Hello, world!");
error(format!("0.1 + 0.2 = {}", 0.1 + 0.2));