This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
rust
/
tests
/
run-pass
/
format.rs
5 lines
94 B
Rust
Raw
Normal View
History
Unescape
Escape
add a test for output string formatting
2017-05-30 14:02:20 -07:00
fn
main
(
)
{
println!
(
"
Hello
{}
"
,
13
)
;
test padding in format strings
2019-02-09 15:52:59 +01:00
println!
(
"
{:0<width$}
"
,
"
hello
"
,
width
=
10
)
;
add a test for output string formatting
2017-05-30 14:02:20 -07:00
}
Reference in New Issue
Copy Permalink