Skip to content

Commit d772936

Browse files
committed
Update summary-ranges.cpp
1 parent 8ca0391 commit d772936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/summary-ranges.cpp

+1-1
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)