Skip to content

Commit 3ecb6a2

Browse files
committed
fix typeid
#12 (comment)
1 parent 48fd81d commit 3ecb6a2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ catch (bad_cast b) {
11731173
#### typeid
11741174

11751175
* typeid 运算符允许在运行时确定对象的类型
1176-
* type\_id 返回一个 type\_info 对象的引用
1176+
* typeid 返回一个 type\_info 对象的引用
11771177
* 如果想通过基类的指针获得派生类的数据类型,基类必须带有虚函数
11781178
* 只能获取对象的实际类型
11791179

README_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ catch (bad_cast b) {
11801180
#### typeid
11811181

11821182
* The typeid operator allows determining the type of an object at runtime
1183-
* type \ _id returns a reference to a type \ _info object
1183+
* typeid returns a reference to a type\_info object
11841184
* If you want to get the data type of the derived class through the pointer of the base class, the base class must have a virtual function
11851185
* Can only get the actual type of the object
11861186

0 commit comments

Comments
 (0)