From 3f36c8549dab79d510216aee9c3dffc21b708bf5 Mon Sep 17 00:00:00 2001 From: Mike Bottom Date: Thu, 7 Feb 2019 07:16:04 -0800 Subject: [PATCH] Update index.md (#35035) Grammar, one word removed ("ever"), to reflect more typical phrasing. --- guide/english/cplusplus/casting/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/cplusplus/casting/index.md b/guide/english/cplusplus/casting/index.md index 223290f732..a6bc5ae4b6 100644 --- a/guide/english/cplusplus/casting/index.md +++ b/guide/english/cplusplus/casting/index.md @@ -14,7 +14,7 @@ Static cast is used for implicit conversions between primitives and type-overloa ### const_cast Const cast can be used to cast away const-ness. This is useful when there is a desire to mutate a constant value. This should be used sparingly, instead, one should consider making parameters/functions non-const in cases where a const-cast is used. -Const cast can also result in undefined behaviour. The only application of const cast should ever be to remove const-ness from a value that was passed to a function and marked const. If the value is truly const, that is, it is marked const at compile time and assigned a value, const cast and mutation of the variable will result in undefined behaviour. +Const cast can also result in undefined behaviour. The only application of const cast should be to remove const-ness from a value that was passed to a function and marked const. If the value is truly const, that is, it is marked const at compile time and assigned a value, const cast and mutation of the variable will result in undefined behaviour. ``` const int y = 10; // y is set to 10.