Skip to content

Commit

Permalink
Add commas to format!() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed Nov 15, 2023
1 parent f499c74 commit 9a2ee7e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions examples/web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,38 @@ pub fn main() {
// Print out code from regular example.
log(format!(
"User's Name whoami::realname(): {}",
whoami::realname()
whoami::realname(),
));
log(format!(
"User's Username whoami::username(): {}",
whoami::username()
whoami::username(),
));
log(format!(
"User's Languages whoami::lang(): {:?}",
whoami::lang().collect::<Vec<String>>()
whoami::lang().collect::<Vec<String>>(),
));
log(format!(
"Device's Pretty Name whoami::devicename(): {}",
whoami::devicename()
whoami::devicename(),
));
log(format!(
"Device's Hostname whoami::hostname(): {}",
whoami::hostname()
whoami::hostname(),
));
log(format!(
"Device's Platform whoami::platform(): {}",
whoami::platform()
whoami::platform(),
));
log(format!(
"Device's OS Distro whoami::distro(): {}",
whoami::distro()
whoami::distro(),
));
log(format!(
"Device's Desktop Env. whoami::desktop_env(): {}",
whoami::desktop_env()
whoami::desktop_env(),
));
log(format!(
"Device's CPU Arch whoami::arch(): {}",
whoami::arch()
whoami::arch(),
));
}

0 comments on commit 9a2ee7e

Please sign in to comment.