Skip to content

Commit a3dd92d

Browse files
authored
fixed tutorial bug that would throw error (ronreiter#692)
the comments (lines 84-85) were hashtags instead of double forward slashes so the compiler (or whatever checks the program) would throw an error when the user has done nothing wrong
1 parent 6456c3c commit a3dd92d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/learn-cpp.org/en/if-else.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ int main()
8181

8282
for(int i = 0; i < 5; i++)
8383
{
84-
# your code goes here.
85-
# use a if else block to classify the person as Child / Adult / Retired
84+
// your code goes here.
85+
// use a if else block to classify the person as Child / Adult / Retired
8686
}
8787
return 0;
8888
}
@@ -121,4 +121,4 @@ int main()
121121
}
122122
}
123123
return 0;
124-
}
124+
}

0 commit comments

Comments
 (0)