Skip to content
Snippets Groups Projects
Commit aedacd9e authored by Jacek Galowicz's avatar Jacek Galowicz
Browse files

Merge branch 'master' into 'master'

Hint that the div function may throw

See merge request jg943598/rpn_calculator!1
parents 7502cd32 bf18c7ad
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,8 @@ int multiply(int a, int b) {
}
/*
* Divides integer b from integer a, throwing an exception when b is zero
* Divides integer b from integer a, throwing an exception when b is zero.
* Throws an std::invalid_argument exceptions if invalid parameters are provided.
*/
int divide(int a, int b) {
if (b == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment