summaryrefslogtreecommitdiff
path: root/docs/C++CASTING
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2015-09-06 16:11:50 -0400
committerAdam <adam@sigterm.info>2015-09-06 16:11:50 -0400
commit907e192aab72872d15186f87ae7acfe0f1b71901 (patch)
tree5862fa72b280113397bab9302c5b31cc5203693f /docs/C++CASTING
parentd6d0c883b07a917bbb2a21f1c73e2db701a05733 (diff)
parent1666b1a8d8d629fd4ea89b083863dc217154eee9 (diff)
Merge pull request #126 from SaberUK/2.0+typos
Fix a ton of typos.
Diffstat (limited to 'docs/C++CASTING')
-rw-r--r--docs/C++CASTING4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/C++CASTING b/docs/C++CASTING
index bae24a24c..e1beb8f06 100644
--- a/docs/C++CASTING
+++ b/docs/C++CASTING
@@ -21,7 +21,7 @@ The syntax is usually *_cast<type>(var).
static_cast
-----------
-From my expierence, this cast is closest to C-style casting for non-pointer
+From my experience, this cast is closest to C-style casting for non-pointer
types as well as between some (but not all) pointer types. This type of cast,
like C-style casting, is performed at compile-time. static_cast can also do
a downcast of a derived class to a base class, but only if the base class is
@@ -80,7 +80,7 @@ Bad_cast exception.
Note that in Anope we prefer if Anope::debug_cast is used.
This uses dynamic_cast (and checks for a NULL pointer return) on debug builds
-and static_cast on release builds, to speed up the program beacuse of dynamic_cast's
+and static_cast on release builds, to speed up the program because of dynamic_cast's
reliance on RTTI.
reinterpret_cast