Fix typo in variable name (#6973)
authorDavid Sanders <dsanders11@ucsbalum.com>
Thu, 9 Dec 2021 18:30:15 +0000 (10:30 -0800)
committerGitHub <noreply@github.com>
Thu, 9 Dec 2021 18:30:15 +0000 (10:30 -0800)
grpc/src/compiler/ts_generator.cc

index fc33abd..80f63b0 100644 (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 + "_";
   }