mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
CMake: Update documentation of STRING(SUBSTRING) for length -1 (#10740)
This commit is contained in:
committed by
David Cole
parent
ba6579f7a3
commit
ecdad65a45
@@ -677,7 +677,7 @@ bool cmStringCommand::HandleSubstringCommand(std::vector<std::string> const&
|
||||
if ( end < -1 || end > leftOverLength )
|
||||
{
|
||||
cmOStringStream ostr;
|
||||
ostr << "end index: " << end << " is out of range " << 0 << " - "
|
||||
ostr << "end index: " << end << " is out of range -1 - "
|
||||
<< leftOverLength;
|
||||
this->SetError(ostr.str().c_str());
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user