From 28a4190d8faf5df4d2668b7c31ac27be795df222 Mon Sep 17 00:00:00 2001 From: wzy <32936898+Freed-Wu@users.noreply.github.com> Date: Wed, 18 Sep 2024 10:54:56 +0800 Subject: [PATCH] nixd/lspserver: fix typo "handler" (#594) --- nixd/lspserver/include/lspserver/Connection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixd/lspserver/include/lspserver/Connection.h b/nixd/lspserver/include/lspserver/Connection.h index 84978ab29..e71e0a6c9 100644 --- a/nixd/lspserver/include/lspserver/Connection.h +++ b/nixd/lspserver/include/lspserver/Connection.h @@ -18,7 +18,7 @@ enum class JSONStreamStyle { }; /// Parsed & classfied messages are dispatched to this handler class -/// LSP Servers should inherit from this hanlder and dispatch +/// LSP Servers should inherit from this handler and dispatch /// notify/call/reply to implementations. class MessageHandler { public: @@ -60,7 +60,7 @@ class InboundPort { /// Dispatch messages to on{Notify,Call,Reply} ( \p Handlers) /// Return values should be forwarded from \p Handlers /// i.e. returns true to keep processing messages, or false to shut down. - bool dispatch(llvm::json::Value Message, MessageHandler &Hanlder); + bool dispatch(llvm::json::Value Message, MessageHandler &Handler); void loop(MessageHandler &Handler); };