Skip to content

Commit d69a112

Browse files
Abseil TeamCJ-Johnson
authored andcommitted
Googletest export
Fix code in googletest parameterized name example. PiperOrigin-RevId: 373262838
1 parent 97f96cb commit d69a112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/advanced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ INSTANTIATE_TEST_SUITE_P(
15371537
std::string name = absl::StrCat(
15381538
std::get<0>(info.param) == MyType::MY_FOO ? "Foo" : "Bar",
15391539
std::get<1>(info.param));
1540-
absl::c_replace_if(name, [](char c) { return !std::isalnum(c); }, '');
1540+
absl::c_replace_if(name, [](char c) { return !std::isalnum(c); }, '_');
15411541
return name;
15421542
});
15431543
```

0 commit comments

Comments
 (0)