Fix typo in AbstractSearchProcessorFactory.java (#11562)

Motivation:

Fixed typo.

occurences -> occurrences
This commit is contained in:
Ikko Ashimine 2021-08-10 01:28:40 +09:00 committed by GitHub
parent 1e6a34affd
commit 214448af03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ package io.netty.buffer.search;
* {@link io.netty.buffer.ByteBuf}s). A new instance should be created with {@link AbstractSearchProcessorFactory} for * {@link io.netty.buffer.ByteBuf}s). A new instance should be created with {@link AbstractSearchProcessorFactory} for
* every search session. However, a {@link SearchProcessor} can (and should) be reused within the search session, * every search session. However, a {@link SearchProcessor} can (and should) be reused within the search session,
* eg. when searching for all occurrences of the {@code needle} within the same {@code haystack}. That way, it can * eg. when searching for all occurrences of the {@code needle} within the same {@code haystack}. That way, it can
* also detect overlapping occurrences of the {@code needle} (eg. a string "ABABAB" contains two occurences of "BAB" * also detect overlapping occurrences of the {@code needle} (eg. a string "ABABAB" contains two occurrences of "BAB"
* that overlap by one character "B"). For this to work correctly, after an occurrence of the {@code needle} is * that overlap by one character "B"). For this to work correctly, after an occurrence of the {@code needle} is
* found ending at index {@code idx}, the search should continue starting from the index {@code idx + 1}. * found ending at index {@code idx}, the search should continue starting from the index {@code idx + 1}.
* <br> * <br>