From 0b8fbb4fad97d2980f0070a23f5365a5ed887e2a Mon Sep 17 00:00:00 2001 From: Marcus Klaas de Vries Date: Wed, 9 Jan 2019 00:47:12 +0100 Subject: Fix typos in ARCHITECTURE.md and a number of crates specifically: gen_lsp_server, ra_arena, ra_cli, ra_db, ra_hir --- crates/gen_lsp_server/src/lib.rs | 6 +++--- crates/gen_lsp_server/src/msg.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/gen_lsp_server') diff --git a/crates/gen_lsp_server/src/lib.rs b/crates/gen_lsp_server/src/lib.rs index b20652928..16ac799ac 100644 --- a/crates/gen_lsp_server/src/lib.rs +++ b/crates/gen_lsp_server/src/lib.rs @@ -78,10 +78,10 @@ pub use crate::{ }; /// Main entry point: runs the server from initialization to shutdown. -/// To attach server to standard input/output streams, use `stdio_transport` +/// To attach server to standard input/output streams, use the `stdio_transport` /// function to create corresponding `sender` and `receiver` pair. /// -///`server` should use `handle_shutdown` function to handle the `Shutdown` +/// `server` should use the `handle_shutdown` function to handle the `Shutdown` /// request. pub fn run_server( caps: ServerCapabilities, @@ -104,7 +104,7 @@ pub fn run_server( Ok(()) } -/// if `req` is `Shutdown`, respond to it and return `None`, otherwise return `Some(req)` +/// If `req` is `Shutdown`, respond to it and return `None`, otherwise return `Some(req)` pub fn handle_shutdown(req: RawRequest, sender: &Sender) -> Option { match req.cast::() { Ok((id, ())) => { diff --git a/crates/gen_lsp_server/src/msg.rs b/crates/gen_lsp_server/src/msg.rs index f68cbc541..94bef374c 100644 --- a/crates/gen_lsp_server/src/msg.rs +++ b/crates/gen_lsp_server/src/msg.rs @@ -54,7 +54,7 @@ pub enum ErrorCode { ServerErrorEnd = -32000, ServerNotInitialized = -32002, UnknownErrorCode = -32001, - RequestCancelled = -32800, + RequestCanceled = -32800, ContentModified = -32801, } -- cgit v1.2.3