Skip to content

Commit 477b181

Browse files
authored
Update tutorial-console-cpp.md
In the _Fix the "divide by zero" error_ section, the image showed a different string set to the console than what was in the code that was shown. This change makes the code match the image.
1 parent 8d8d8ba commit 477b181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/get-started/tutorial-console-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ Let's handle division by zero more gracefully so that it's easier for the user t
360360
cin >> x >> oper >> y;
361361
if (oper == '/' && y == 0)
362362
{
363-
cout << "Attempted to divide by zero!" << endl;
363+
cout << "Math error: Attempted to divide by zero!" << endl;
364364
continue;
365365
}
366366
else

0 commit comments

Comments
 (0)