Skip to content

Commit

Permalink
Fix example code (apache#6627)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkimball authored Oct 6, 2020
1 parent 277bfc8 commit dec5030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/tvm/runtime/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ struct TypeIndex {
* TVM_DECLARE_BASE_OBJECT_INFO(BaseObj, Object);
* };
*
* class ObjLeaf : public ObjBase {
* class LeafObj : public BaseObj {
* public:
* // fields
* int child_field0;
Expand All @@ -144,8 +144,8 @@ struct TypeIndex {
* };
*
* // The following code should be put into a cc file.
* TVM_REGISTER_OBJECT_TYPE(ObjBase);
* TVM_REGISTER_OBJECT_TYPE(ObjLeaf);
* TVM_REGISTER_OBJECT_TYPE(BaseObj);
* TVM_REGISTER_OBJECT_TYPE(LeafObj);
*
* // Usage example.
* void TestObjects() {
Expand Down

0 comments on commit dec5030

Please sign in to comment.