1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-19 03:57:14 +01:00

Update String.cpp

This commit is contained in:
Sandu Liviu Catalin 2021-04-20 19:54:41 +03:00
parent 974b916b5c
commit bc6a43d84c

View File

@ -788,9 +788,12 @@ static String StrImplode(StackStrF & sep, Array & arr)
buf.clear(); // NO! buf.clear(); // NO!
} }
else else
{
for (SQInteger n = 0; n < sep.mLen; ++n)
{ {
buf.pop_back(); // Remove trailing separator buf.pop_back(); // Remove trailing separator
} }
}
// Return the string // Return the string
return buf; return buf;
} }