Skip to content

Commit ebadb4c

Browse files
authored
Merge pull request #11889 from velconia/fix_sprintf
Change Sprintf back
2 parents 61996d7 + 6335889 commit ebadb4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/string/printf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void Fprintf(std::ostream& out, const char* fmt, const Args&... args) {
8484
}
8585

8686
template <typename... Args>
87-
std::string Sprintf(const char* fmt = "", const Args&... args) {
87+
std::string Sprintf(const char* fmt, const Args&... args) {
8888
std::ostringstream oss;
8989
Fprintf(oss, fmt, args...);
9090
return oss.str();

0 commit comments

Comments
 (0)