We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ecd0976 + 7018cb7 commit 5823096Copy full SHA for 5823096
docs/cpp/constructors-cpp.md
@@ -232,7 +232,7 @@ public:
232
}
233
int Volume() { return m_width * m_height * m_length; }
234
void Add_Item(string item) { m_contents.push_back(item); }
235
- void Get_Contents()
+ void Print_Contents()
236
{
237
for (const auto& item : m_contents)
238
@@ -262,7 +262,7 @@ int main()
262
Box b1(b); // "copy"
263
Box b2(get_Box()); // "move"
264
cout << "b2 contents: ";
265
- b2.Get_Contents(); // Prove that we have all the values
+ b2.Print_Contents(); // Prove that we have all the values
266
267
char ch;
268
cin >> ch; // keep window open
0 commit comments