From c95f99c81c27709c1882cd217609771790587c2e Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Tue, 10 Aug 2021 01:28:40 +0900 Subject: [PATCH] Fix typo in AbstractSearchProcessorFactory.java (#11562) Motivation: Fixed typo. occurences -> occurrences --- .../io/netty/buffer/search/AbstractSearchProcessorFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer/src/main/java/io/netty/buffer/search/AbstractSearchProcessorFactory.java b/buffer/src/main/java/io/netty/buffer/search/AbstractSearchProcessorFactory.java index 6476c2b7fb..f76b2d3e53 100644 --- a/buffer/src/main/java/io/netty/buffer/search/AbstractSearchProcessorFactory.java +++ b/buffer/src/main/java/io/netty/buffer/search/AbstractSearchProcessorFactory.java @@ -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 * 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 - * 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 * found ending at index {@code idx}, the search should continue starting from the index {@code idx + 1}. *