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
c7f7bc0ca2
rust
/
tests
/
pass
/
format.rs
5 lines
94 B
Rust
Raw
Normal View
History
Unescape
Escape
add a test for output string formatting
2017-05-30 16:02:20 -05:00
fn
main
(
)
{
println!
(
"
Hello
{}
"
,
13
)
;
test padding in format strings
2019-02-09 08:52:59 -06:00
println!
(
"
{:0<width$}
"
,
"
hello
"
,
width
=
10
)
;
add a test for output string formatting
2017-05-30 16:02:20 -05:00
}
Reference in New Issue
Copy Permalink