From 7a1cd5c545d5bb595fef840be8f0894849332059 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Sat, 27 Aug 2011 23:49:40 +0100 Subject: [PATCH] Fix CPString substringToIndex documentation. The index parameter is not inclusive. --- Foundation/CPString.j | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Foundation/CPString.j b/Foundation/CPString.j index 768dd9cfc..3222c0b88 100644 --- a/Foundation/CPString.j +++ b/Foundation/CPString.j @@ -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