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 dee809d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/source/docs/inheritance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ 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",
&B::call,
sol::base_classes,
sol::bases<A>());
"call",
&B::call,
sol::base_classes,
sol::bases<A>());

return 0;
}

0 comments on commit dee809d

Please sign in to comment.