From f0b3a3439c03f8dee6643993bdc3264dce775cea Mon Sep 17 00:00:00 2001 From: Hsu Still <341464@gmail.com> Date: Tue, 20 Mar 2018 14:21:22 +0800 Subject: [PATCH] Fix typo & improve styling in Basic Operations --- docs/faq/basic-operations.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/faq/basic-operations.md b/docs/faq/basic-operations.md index fbbc41feb..13d482779 100644 --- a/docs/faq/basic-operations.md +++ b/docs/faq/basic-operations.md @@ -3,9 +3,12 @@ ## How should I safely check a type? In Discord.NET, the idea of polymorphism is used throughout. You may need to cast the object as a certain type before you can perform any -action. There are several ways to cast, with direct casting -`(Type)type` being the the least recommended, as it *can* throw an +action. + +There are several ways to cast, with direct casting +`(Type)type` being **the least recommended**, as it *can* throw an [InvalidCastException] when the object isn't the desired type. + Please refer to [this post] for more details. A good and safe casting example: