Skip to content

Commit

Permalink
Fix a typo in the inheritance example #1514
Browse files Browse the repository at this point in the history
  • Loading branch information
C3pa authored and ThePhD committed Jul 13, 2024
1 parent 22f9cbf commit b815714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/source/docs/inheritance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int main(int, char*[]) {

sol::state lua;

lua.new_usertype<B>("A", "call", &A::call);
lua.new_usertype<A>("A", "call", &A::call);

lua.new_usertype<B>("B",
"call",
Expand Down

0 comments on commit b815714

Please sign in to comment.