Skip to content

Commit bd8775c

Browse files
authored
Update sort-an-array.cpp
1 parent acfbea8 commit bd8775c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/sort-an-array.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Solution {
2525
}
2626
tmp.emplace_back((*nums)[i]);
2727
}
28-
copy(tmp.begin(), tmp.end(), nums->begin() + start);
28+
copy(tmp.cbegin(), tmp.cend(), nums->begin() + start);
2929
}
3030
};
3131

0 commit comments

Comments
 (0)