Skip to content

Commit

Permalink
Update generated code template in context.cpp to avoid else after ret…
Browse files Browse the repository at this point in the history
…urn (#292)
  • Loading branch information
andriish authored Apr 11, 2024
1 parent 95acfe9 commit 1236eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ PYBIND11_MODULE({2}, root_module) {{
auto mangle_namespace_name(
[](std::string const &ns) -> std::string {{
if ( std::find(reserved_python_words.begin(), reserved_python_words.end(), ns) == reserved_python_words.end() ) return ns;
else return ns+'_';
return ns+'_';
}}
);
Expand Down

0 comments on commit 1236eb2

Please sign in to comment.