Fix format string and/or arguments to match.

PiperOrigin-RevId: 488378036
Change-Id: I1e3dfa9a734f4c682f1b388f6ba54bf89bd98920
This commit is contained in:
Sandboxed API Team 2022-11-14 08:50:30 -08:00 committed by Copybara-Service
parent 67bc67bbef
commit 3155cb0a67

View File

@ -132,8 +132,8 @@ struct FileToc {
#endif // SANDBOXED_API_FILE_TOC_H_
#ifndef %3$s
#define %3$s
#ifndef %1$s
#define %1$s
)";
constexpr const char kHNamespaceBeginFmt[] =
@ -226,8 +226,7 @@ int main(int argc, char* argv[]) {
std::replace_if(
header_guard.begin(), header_guard.end(),
[](char c) { return !absl::ascii_isalnum(c); }, '_');
absl::FPrintF(out_h.get(), kHFileHeaderFmt, package, toc_ident,
header_guard);
absl::FPrintF(out_h.get(), kHFileHeaderFmt, header_guard);
if (have_ns) {
absl::FPrintF(out_h.get(), kHNamespaceBeginFmt, ns);
}