mirror of
				https://github.com/fmtlib/fmt.git
				synced 2025-11-04 08:01:40 +01:00 
			
		
		
		
	Simplify sample
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user