diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-09 12:20:05 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-09 12:20:05 +0000 |
commit | 76b3985d70f850e22e6cc630230e56dd7cb96f9a (patch) | |
tree | d0d9586bcdf5d8efc1b7d031810ece7093c482d3 /crates/gen_lsp_server/src/lib.rs | |
parent | c0f48f9eb091b5054acb98575c69c67a0aeefb7b (diff) | |
parent | 0b8fbb4fad97d2980f0070a23f5365a5ed887e2a (diff) |
Merge #473
473: Partial typo fix r=matklad a=marcusklaas
This fixes some typos. Mostly in documentation, but also some code is affected (`defenition` was used in a few method names).
Co-authored-by: Marcus Klaas de Vries <[email protected]>
Diffstat (limited to 'crates/gen_lsp_server/src/lib.rs')
-rw-r--r-- | crates/gen_lsp_server/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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::{ | |||
78 | }; | 78 | }; |
79 | 79 | ||
80 | /// Main entry point: runs the server from initialization to shutdown. | 80 | /// Main entry point: runs the server from initialization to shutdown. |
81 | /// To attach server to standard input/output streams, use `stdio_transport` | 81 | /// To attach server to standard input/output streams, use the `stdio_transport` |
82 | /// function to create corresponding `sender` and `receiver` pair. | 82 | /// function to create corresponding `sender` and `receiver` pair. |
83 | /// | 83 | /// |
84 | ///`server` should use `handle_shutdown` function to handle the `Shutdown` | 84 | /// `server` should use the `handle_shutdown` function to handle the `Shutdown` |
85 | /// request. | 85 | /// request. |
86 | pub fn run_server( | 86 | pub fn run_server( |
87 | caps: ServerCapabilities, | 87 | caps: ServerCapabilities, |
@@ -104,7 +104,7 @@ pub fn run_server( | |||
104 | Ok(()) | 104 | Ok(()) |
105 | } | 105 | } |
106 | 106 | ||
107 | /// if `req` is `Shutdown`, respond to it and return `None`, otherwise return `Some(req)` | 107 | /// If `req` is `Shutdown`, respond to it and return `None`, otherwise return `Some(req)` |
108 | pub fn handle_shutdown(req: RawRequest, sender: &Sender<RawMessage>) -> Option<RawRequest> { | 108 | pub fn handle_shutdown(req: RawRequest, sender: &Sender<RawMessage>) -> Option<RawRequest> { |
109 | match req.cast::<Shutdown>() { | 109 | match req.cast::<Shutdown>() { |
110 | Ok((id, ())) => { | 110 | Ok((id, ())) => { |