ICU-13647 fix SearchIterator docs sample: getMatchedLength() not getMatchLength()

This commit is contained in:
Markus Scherer 2019-08-30 16:55:52 -07:00
parent ebb374ae30
commit 616b3c5647
2 changed files with 2 additions and 4 deletions

View file

@ -72,8 +72,7 @@ U_NAMESPACE_BEGIN
* UErrorCode error = U_ZERO_ERROR;
* for (int pos = iter->first(error); pos != USEARCH_DONE;
* pos = iter->next(error)) {
* printf("Found match at %d pos, length is %d\n", pos,
* iter.getMatchLength());
* printf("Found match at %d pos, length is %d\n", pos, iter.getMatchedLength());
* }
* </code></pre>
*

View file

@ -121,8 +121,7 @@ U_NAMESPACE_BEGIN
* pos != USEARCH_DONE;
* pos = iter.next(error))
* {
* printf("Found match at %d pos, length is %d\n", pos,
* iter.getMatchLength());
* printf("Found match at %d pos, length is %d\n", pos, iter.getMatchedLength());
* }
* </code></pre>
* <p>