diff --git a/cpp/ql/src/semmle/code/cpp/exprs/Access.qll b/cpp/ql/src/semmle/code/cpp/exprs/Access.qll index f68eaef5d8b5..86a46c2531d9 100644 --- a/cpp/ql/src/semmle/code/cpp/exprs/Access.qll +++ b/cpp/ql/src/semmle/code/cpp/exprs/Access.qll @@ -338,7 +338,7 @@ class PointerToFieldLiteral extends ImplicitThisFieldAccess { * int myFunctionTarget(int); * * void myFunction() { - * int (*myFunctionPointer)(int) = &myTarget; + * int (*myFunctionPointer)(int) = &myFunctionTarget; * } * ``` */