Fix CPString substringToIndex documentation. The index parameter is not inclusive.

This commit is contained in:
Alexander Ljungberg committed 2011-08-27 23:49:40 +01:00
1 parent 29ff54054e
commit 7a1cd5c545
1 file changed
+4 -2
+4 -2
View File
@@ -306,8 +306,10 @@ var CPStringRegexSpecialCharacters = [
}
/*!
Creates a substring from the beginning of the receiver to the specified index.
@param anIndex the last index of the receiver to use for the substring (inclusive)
Creates a substring of characters from the receiver, starting at the beginning and up to
the given index.
@param anIndex the index of the receiver where the substring should end (non inclusive)
@return the substring
*/
- (CPString)substringToIndex:(unsigned)anIndex