From c05ce1513a2cea719330513824bc7294afccb611 Mon Sep 17 00:00:00 2001 From: guangwu Date: Tue, 19 Mar 2024 23:08:35 +0800 Subject: [PATCH] style(plugins/grpc-web): fix typos (#12741) Signed-off-by: guoguangwu --- kong/plugins/grpc-web/deco.lua | 2 +- scripts/explain_manifest/expect.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kong/plugins/grpc-web/deco.lua b/kong/plugins/grpc-web/deco.lua index 014d1c5afdde..25db0ca6104a 100644 --- a/kong/plugins/grpc-web/deco.lua +++ b/kong/plugins/grpc-web/deco.lua @@ -83,7 +83,7 @@ local function rpc_types(path, protofile) local info = get_proto_info(protofile) local types = info[path] if not types then - return nil, ("Unkown path %q"):format(path) + return nil, ("Unknown path %q"):format(path) end return types[1], types[2] diff --git a/scripts/explain_manifest/expect.py b/scripts/explain_manifest/expect.py index 7b52dea97175..c23d4f9a9d05 100644 --- a/scripts/explain_manifest/expect.py +++ b/scripts/explain_manifest/expect.py @@ -139,7 +139,7 @@ def _print_all_fails(self): if self._all_failures: self._print_error( - "Following failure(s) occured:\n" + "\n".join(self._all_failures)) + "Following failure(s) occurred:\n" + "\n".join(self._all_failures)) os._exit(1) def _compare(self, attr, fn): @@ -149,7 +149,7 @@ def _compare(self, attr, fn): continue # accept missing attribute for now v = getattr(f, attr) if self._key_name and isinstance(v, dict): - # TODO: explict flag to accept missing key + # TODO: explicit flag to accept missing key if self._key_name not in v: return True v = v[self._key_name]