Skip to content

Commit 249a11d

Browse files
committed
Fixing auto bug.
1 parent 2ed0a55 commit 249a11d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/crypto-square/example.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ string cipher::cipher_text() const
6363
string cipher::normalized_cipher_text() const
6464
{
6565
const auto num_rows = size();
66-
const auto plain{plain_text_segments()};
66+
const auto plain = plain_text_segments();
6767
string result;
6868
for (size_t i = 0; i < num_rows; ++i) {
69-
for (const auto s : plain) {
69+
for (const& string s : plain) {
7070
if (s.length() > i) {
7171
result += s[i];
7272
}

0 commit comments

Comments
 (0)