Skip to content

Commit fe6c14c

Browse files
authored
Fix typo in README
1 parent 7a727cc commit fe6c14c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ reactStringReplace('hey hey you', /(hey)/g, () => <span>hey</span>);
135135

136136
Type: `function`
137137

138-
The replacer function to run each time `match` is found. This function will be patched the matching string and an `index` which can be used for adding keys to replacement components if necessary. Character `offset` identifies the position of match start in the provided text.
138+
The replacer function to run each time `match` is found. This function will be passed the matching string and an `index` which can be used for adding keys to replacement components if necessary. Character `offset` identifies the position of match start in the provided text.
139139

140140
```js
141141
const func = (match, index, offset) => <span key={index}>{match}</span>;

0 commit comments

Comments
 (0)