Skip to content

Commit 0a33eba

Browse files
committed
Update summary-ranges.cpp
1 parent 504cbf0 commit 0a33eba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

C++/summary-ranges.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Solution {
1414
if (i < nums.size() && nums[i] == end + 1) {
1515
end = nums[i];
1616
} else {
17-
string range = to_string(start);
17+
auto&& range = to_string(start);
1818
if (start != end) {
1919
range.append("->" + to_string(end));
2020
}

0 commit comments

Comments
 (0)