Merge pull request #50 from vadz/I10-example-fix

Add missing "=" to the example of using tie()
This commit is contained in:
Gabriel Dos Reis 2015-09-21 07:39:47 -07:00
commit 608d3d146b

View File

@ -1259,7 +1259,7 @@ consider using a style that returns a pair of values:
int val; int val;
int error_code; int error_code;
tie(val,error_code) do_something(); tie(val,error_code) = do_something();
if (error_code==0) { if (error_code==0) {
// ... handle the error or exit ... // ... handle the error or exit ...
} }