Skip to content

Commit 83d5883

Browse files
committed
Fix an incorrect return type.
Fix #385.
1 parent 3cfb08d commit 83d5883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

talk/objectorientation/objectsclasses.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
void MyFirstClass::squareA() {
8080
a *= a;
8181
}
82-
void MyFirstClass::sum(int b) {
82+
int MyFirstClass::sum(int b) {
8383
return a + b;
8484
}
8585
\end{cppcode*}

0 commit comments

Comments
 (0)