Skip to content

Commit d7a2122

Browse files
author
PRMerger7
authored
Merge pull request MicrosoftDocs#753 from MicrosoftDocs/FromPublicMasterBranch
Confirm merge from FromPublicMasterBranch to master to sync with https://github.com/MicrosoftDocs/cpp-docs (branch master)
2 parents 9c72b08 + e0ca07a commit d7a2122

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/cpp/single-inheritance.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,10 @@ class PaperbackBook : public Document {};
140140
141141
int main() {
142142
Document * DocLib[10]; // Library of ten documents.
143-
for (int i = 0 ; i < 10 ; i++)
143+
for (int i = 0 ; i < 5 ; i++)
144144
DocLib[i] = new Document;
145+
for (int i = 5 ; i < 10 ; i++)
146+
DocLib[i] = new PaperbackBook;
145147
}
146148
```
147149

0 commit comments

Comments
 (0)