Documentation/networking/strparser.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
The context indicates that 'than' is the correct word instead of 'then',
as a comparison is being performed.
Given that 'then' is also a valid English word, checkpatch.pl wouldn't
have picked up on this spelling error.
This typo was caught by AI during code review.
Fixes: adcce4d5dd46 ("strparser: Documentation")
Reported-by: Sourcery AI <hello@sourcery.ai>
Suggested-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
---
Documentation/networking/strparser.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/networking/strparser.rst b/Documentation/networking/strparser.rst
index 7f623d1db72a..8dc6bb04c710 100644
--- a/Documentation/networking/strparser.rst
+++ b/Documentation/networking/strparser.rst
@@ -180,7 +180,7 @@ There are seven callbacks:
struct contains two fields: offset and full_len. Offset is
where the message starts in the skb, and full_len is the
the length of the message. skb->len - offset may be greater
- then full_len since strparser does not trim the skb.
+ than full_len since strparser does not trim the skb.
::
--
2.49.0
在 3/18/25 3:46 PM, WangYuli 写道:
> The context indicates that 'than' is the correct word instead of 'then',
> as a comparison is being performed.
>
> Given that 'then' is also a valid English word, checkpatch.pl wouldn't
> have picked up on this spelling error.
>
> This typo was caught by AI during code review.
>
> Fixes: adcce4d5dd46 ("strparser: Documentation")
> Reported-by: Sourcery AI <hello@sourcery.ai>
> Suggested-by: Wentao Guan <guanwentao@uniontech.com>
> Signed-off-by: WangYuli <wangyuli@uniontech.com>
Reviewed-by: Yanteng Si <si.yanteng@linux.dev>
Thanks,
Yanteng
> ---
> Documentation/networking/strparser.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/networking/strparser.rst b/Documentation/networking/strparser.rst
> index 7f623d1db72a..8dc6bb04c710 100644
> --- a/Documentation/networking/strparser.rst
> +++ b/Documentation/networking/strparser.rst
> @@ -180,7 +180,7 @@ There are seven callbacks:
> struct contains two fields: offset and full_len. Offset is
> where the message starts in the skb, and full_len is the
> the length of the message. skb->len - offset may be greater
> - then full_len since strparser does not trim the skb.
> + than full_len since strparser does not trim the skb.
>
> ::
>
© 2016 - 2025 Red Hat, Inc.