Skip to content

Commit

Permalink
update ch05 ex5.17
Browse files Browse the repository at this point in the history
  • Loading branch information
huangmingchuan committed Dec 25, 2015
1 parent 4a6ac2a commit 1e97811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch05/ex5_17.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using std::cout; using std::vector;
bool is_prefix(vector<int> const& lhs, vector<int> const& rhs)
{
if(lhs.size() > rhs.size())
is_prefix(rhs, lhs);
return is_prefix(rhs, lhs);
for(unsigned i = 0; i != lhs.size(); ++i)
if(lhs[i] != rhs[i]) return false;
return true;
Expand Down

0 comments on commit 1e97811

Please sign in to comment.