Browse Source

Typo in comment

Jorrit Rouwe 3 years ago
parent
commit
5b22c10575
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Jolt/Core/RTTI.h

+ 2 - 3
Jolt/Core/RTTI.h

@@ -22,7 +22,6 @@ class RTTIAttribute;
 ///  - An extra virtual member function is added. This adds 8 bytes to the size of 
 ///  - An extra virtual member function is added. This adds 8 bytes to the size of 
 ///    an instance of the class (unless you are already using virtual functions).
 ///    an instance of the class (unless you are already using virtual functions).
 ///
 ///
-///
 /// To use RTTI on a specific class use:
 /// To use RTTI on a specific class use:
 ///
 ///
 /// Header file:
 /// Header file:
@@ -81,8 +80,8 @@ class RTTIAttribute;
 ///
 ///
 /// Example of usage in a program:
 /// Example of usage in a program:
 ///
 ///
-///		pFoo foo_ptr = new Foo;
-///		pFoo bar_ptr = new Bar;
+///		Foo *foo_ptr = new Foo;
+///		Bar *bar_ptr = new Bar;
 ///
 ///
 ///		IsType(foo_ptr, RTTI(Bar)) returns false
 ///		IsType(foo_ptr, RTTI(Bar)) returns false
 ///		IsType(bar_ptr, RTTI(Bar)) returns true
 ///		IsType(bar_ptr, RTTI(Bar)) returns true