summaryrefslogtreecommitdiff
path: root/Source/cmStringCommand.cxx
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2011-02-03 21:10:28 +0100
committerDavid Cole <david.cole@kitware.com>2011-05-27 16:25:08 -0400
commitecdad65a4541db353bd498be7d7090b5ed059ebc (patch)
tree6baef5f3d15311f94f75a346685215ee632fe4da /Source/cmStringCommand.cxx
parentba6579f7a3a687a42572f683441f56cbc70ae928 (diff)
downloadcmake-ecdad65a4541db353bd498be7d7090b5ed059ebc.tar.gz
CMake: Update documentation of STRING(SUBSTRING) for length -1 (#10740)
Diffstat (limited to 'Source/cmStringCommand.cxx')
-rw-r--r--Source/cmStringCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx
index 3c74dc9865..d239c063ad 100644
--- a/Source/cmStringCommand.cxx
+++ b/Source/cmStringCommand.cxx
@@ -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;