Skip to content

Commit

Permalink
iox-#1059 Spell correction in variable
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Eltzschig <me@elchris.org>
  • Loading branch information
elfenpiff committed Feb 4, 2022
1 parent abad681 commit 180bb7d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions iceoryx_hoofs/source/cxx/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ StreamType& operator<<(StreamType& stream, perms value) noexcept
return stream;
}

bool hasPreceedingEntry = false;
bool hasPrecedingEntry = false;
auto outputToStream = [&](const char* text) {
if (hasPreceedingEntry)
if (hasPrecedingEntry)
{
stream << ", ";
}
hasPreceedingEntry = true;
hasPrecedingEntry = true;

stream << text;
};

auto finishEntry = [&](bool isLastEntry = false) {
if (hasPreceedingEntry)
if (hasPrecedingEntry)
{
stream << "}";
}
Expand All @@ -96,7 +96,7 @@ StreamType& operator<<(StreamType& stream, perms value) noexcept
{
stream << ", ";
}
hasPreceedingEntry = false;
hasPrecedingEntry = false;
};

// owner
Expand Down

0 comments on commit 180bb7d

Please sign in to comment.