Skip to content

Commit

Permalink
Fix a typo in the inheritance example ThePhD#1514
Browse files Browse the repository at this point in the history
  • Loading branch information
C3pa committed Nov 6, 2023
1 parent 9c882a2 commit cd21341
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 cd21341

Please sign in to comment.