diff --git a/docs/ProgrammersManual.rst b/docs/ProgrammersManual.rst index e4d3ddb7bd9..9c3b424cf97 100644 --- a/docs/ProgrammersManual.rst +++ b/docs/ProgrammersManual.rst @@ -149,7 +149,7 @@ rarely have to include this file directly). .. code-block:: c++ - if (AllocationInst *AI = dyn_cast(Val)) { + if (auto *AI = dyn_cast(Val)) { // ... }