summaryrefslogtreecommitdiffhomepage
path: root/zh-cn/c++-cn.html.markdown
diff options
context:
space:
mode:
authorBo Liu <hmybmny@gmail.com>2016-09-11 19:20:26 +0800
committerGitHub <noreply@github.com>2016-09-11 19:20:26 +0800
commit8aaffa3f625ec16b8003ae9459666bb71436d464 (patch)
tree475f2e47d4a53d98a1a2aa9f20d98380c9db7fd8 /zh-cn/c++-cn.html.markdown
parentfbb7ddcac3d56feaac58bbb325c70253b2030f1b (diff)
Update c++-cn.html.markdown
Line 325: update myDog.printDog() to myDog.print().
Diffstat (limited to 'zh-cn/c++-cn.html.markdown')
-rw-r--r--zh-cn/c++-cn.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/zh-cn/c++-cn.html.markdown b/zh-cn/c++-cn.html.markdown
index 5cf7e4c5..d71aa8d6 100644
--- a/zh-cn/c++-cn.html.markdown
+++ b/zh-cn/c++-cn.html.markdown
@@ -322,7 +322,7 @@ int main() {
Dog myDog; // 此时显示“A dog has been constructed”
myDog.setName("Barkley");
myDog.setWeight(10);
- myDog.printDog(); // 显示“Dog is Barkley and weighs 10 kg”
+ myDog.print(); // 显示“Dog is Barkley and weighs 10 kg”
return 0;
} // 显示“Goodbye Barkley”