mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Simplify sample
This commit is contained in:
parent
2b35c9e8e7
commit
016adee06c
@ -10,7 +10,7 @@ class Date {
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
int main() {
|
||||
std::string s = fmt::format("The date is {}", Date(2012, 12, 9));
|
||||
fmt::print("Hello, {}!", "world"); // uses Python-like format string syntax
|
||||
fmt::printf("\n%s", s); // uses printf format string syntax
|
||||
|
Loading…
Reference in New Issue
Block a user