Fix typo in variable name (#6973)

This commit is contained in:
David Sanders
2021-12-09 10:30:15 -08:00
committed by GitHub
parent e08da4dea2
commit fcc2bee0b6

View File

@@ -47,13 +47,13 @@ grpc::string ToDasherizedCase(const grpc::string pascal_case) {
}
grpc::string GenerateNamespace(const std::vector<std::string> namepsace,
grpc::string GenerateNamespace(const std::vector<std::string> ns,
const std::string filename,
const bool include_separator) {
grpc::string path = "";
if (include_separator) path += ".";
for (auto it = namepsace.begin(); it < namepsace.end(); it++) {
for (auto it = ns.begin(); it < ns.end(); it++) {
if (include_separator) path += "/";
path += include_separator ? ToDasherizedCase(*it) : *it + "_";
}