Skip to content

Commit 673d614

Browse files
author
Jan Weiß
committed
Updating “readme.md”.
1 parent 2bf6e5d commit 673d614

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,18 +250,18 @@ Get the character index of the first match. If no match is found, then `-1`.
250250

251251
######From NSRegularExpression
252252

253-
int index = [RX(@"\\d+") indexOf:@"Buy 1 dog or buy 2?"];
253+
NSUInteger index = [RX(@"\\d+") indexOf:@"Buy 1 dog or buy 2?"];
254254
// => 4
255255

256-
int index = [RX(@"\\d+") indexOf:@"Buy a dog?"];
256+
NSUInteger index = [RX(@"\\d+") indexOf:@"Buy a dog?"];
257257
// => -1
258258

259259
######From NSString
260260

261-
int index = [@"Buy 1 dog or buy 2?" indexOf:RX(@"\\d+")];
261+
NSUInteger index = [@"Buy 1 dog or buy 2?" indexOf:RX(@"\\d+")];
262262
// => 4
263263

264-
int index = [@"Buy a dog?" indexOf:RX(@"\\d+")];
264+
NSUInteger index = [@"Buy a dog?" indexOf:RX(@"\\d+")];
265265
// => -1
266266

267267

0 commit comments

Comments
 (0)