Simplify sample

This commit is contained in:
Victor Zverovich 2015-02-21 16:15:47 -08:00
parent 2b35c9e8e7
commit 016adee06c

View File

@ -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)); std::string s = fmt::format("The date is {}", Date(2012, 12, 9));
fmt::print("Hello, {}!", "world"); // uses Python-like format string syntax fmt::print("Hello, {}!", "world"); // uses Python-like format string syntax
fmt::printf("\n%s", s); // uses printf format string syntax fmt::printf("\n%s", s); // uses printf format string syntax