Skip to content

Commit ac3ed31

Browse files
jensmaurerzygoloid
authored andcommitted
[class.virtual] Correct function names in example comments.
Fixes #1740.
1 parent b4e9333 commit ac3ed31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/derived.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,10 +767,10 @@
767767
bp->vf1(); // calls \tcode{Derived::vf1()}
768768
bp->vf2(); // calls \tcode{Base::vf2()}
769769
bp->f(); // calls \tcode{Base::f()} (not virtual)
770-
B* p = bp->vf4(); // calls \tcode{Derived::pf()} and converts the
770+
B* p = bp->vf4(); // calls \tcode{Derived::vf4()} and converts the
771771
// result to \tcode{B*}
772772
Derived* dp = &d;
773-
D* q = dp->vf4(); // calls \tcode{Derived::pf()} and does not
773+
D* q = dp->vf4(); // calls \tcode{Derived::vf4()} and does not
774774
// convert the result to \tcode{B*}
775775
dp->vf2(); // ill-formed: argument mismatch
776776
}

0 commit comments

Comments
 (0)