summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGeoff Liu <cangming.liu@gmail.com>2016-09-11 15:52:00 -0400
committerGitHub <noreply@github.com>2016-09-11 15:52:00 -0400
commit71b3342f0434a20eced121764fe2987a292a7745 (patch)
tree475f2e47d4a53d98a1a2aa9f20d98380c9db7fd8
parentfbb7ddcac3d56feaac58bbb325c70253b2030f1b (diff)
parent8aaffa3f625ec16b8003ae9459666bb71436d464 (diff)
Merge pull request #2366 from HmyBmny/patch-1
Update 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”