summaryrefslogtreecommitdiff
path: root/different_ways_of_making_errors.html
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-29 00:41:46 +0200
committerAki <please@ignore.pl>2022-04-29 00:41:46 +0200
commitb2b4cbae3dd63acde48d636d6ba148fc692e8306 (patch)
treeb05979757af8d4bcf071e366d7a3752937e63f9d /different_ways_of_making_errors.html
parent59cf5e9bcbd1e4195b680d8dc33c5f52a7cb6560 (diff)
downloadignore.pl-b2b4cbae3dd63acde48d636d6ba148fc692e8306.zip
ignore.pl-b2b4cbae3dd63acde48d636d6ba148fc692e8306.tar.gz
ignore.pl-b2b4cbae3dd63acde48d636d6ba148fc692e8306.tar.bz2
Fixed cout shift direction
Diffstat (limited to 'different_ways_of_making_errors.html')
-rw-r--r--different_ways_of_making_errors.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/different_ways_of_making_errors.html b/different_ways_of_making_errors.html
index 42a039b..c4b9d3f 100644
--- a/different_ways_of_making_errors.html
+++ b/different_ways_of_making_errors.html
@@ -170,12 +170,12 @@ Result&lt;int&gt; add_two(int value) {
int main() {
for (int i = 8; i &lt; 12; ++i) {
const auto number = add_two(i);
- std::cout &gt;&gt; i;
+ std::cout &lt;&lt; i;
if (!number.is_ok())
- std::cout &gt;&gt; number.m_message;
+ std::cout &lt;&lt; number.m_message;
else
- std::cout &gt;&gt; number.m_value;
- std::cout &gt;&gt; std::endl;
+ std::cout &lt;&lt; number.m_value;
+ std::cout &lt;&lt; std::endl;
}
}
</pre>