Skip to content

Commit cdbe1ff

Browse files
authored
🐱 const iter (#233)
1 parent 2679594 commit cdbe1ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/escapist_client/escapist_demo.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void print_doc(const string& op, StatusOr<Doc> status_doc) {
1919
std::cout << " version: " << status_doc->version << std::endl;
2020
std::cout << " bytes: " << status_doc->bytes << std::endl;
2121
std::cout << " tags: " << std::endl;
22-
for (auto& [tag_name, tag_value] : status_doc->tags) {
22+
for (const auto& [tag_name, tag_value] : status_doc->tags) {
2323
std::cout << " " << tag_name << ": " << tag_value << std::endl;
2424
}
2525
std::cout << std::endl;

0 commit comments

Comments
 (0)