1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update cpp snippet

This commit is contained in:
jdhao 2021-12-04 23:47:50 +08:00
parent 50fafcffdb
commit 9e6a71c32d

View File

@ -42,8 +42,9 @@ void printList(const T& arr, const string& desc){
std::cout << desc << ": [";
for (auto it = arr.begin(); it != arr.end(); it++){
std::cout << *it << ((std::next(it) != arr.end()) ? ", " : "]\n");
std::cout << *it << ((std::next(it) != arr.end()) ? ", " : "");
}
std::cout << "]\n";
}
endsnippet