mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 19:22:40 +00:00
Fix typo in variable name (#6973)
This commit is contained in:
@@ -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 std::string filename,
|
||||||
const bool include_separator) {
|
const bool include_separator) {
|
||||||
grpc::string path = "";
|
grpc::string path = "";
|
||||||
if (include_separator) 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 += "/";
|
if (include_separator) path += "/";
|
||||||
path += include_separator ? ToDasherizedCase(*it) : *it + "_";
|
path += include_separator ? ToDasherizedCase(*it) : *it + "_";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user