Skip to content

Commit f76d4bf

Browse files
committed
improve documentation
1 parent 52c33e8 commit f76d4bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lsp.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,7 @@ pub const Transport = struct {
11011101

11021102
pub fn init(
11031103
io: std.Io,
1104+
/// See `BaseProtocolHeader.parse`
11041105
read_buffer: []u8,
11051106
read_from: std.Io.File,
11061107
write_to: std.fs.File,
@@ -1834,7 +1835,7 @@ pub fn Message(
18341835
\\ \\}
18351836
\\;
18361837
\\
1837-
\\const Message = lsp.Message(.{ ... });
1838+
\\const Message = lsp.Message(RequestParams, NotificationParams, .{});
18381839
\\const lsp_message = try Message.jsonParseFromSlice(allocator, json_message, .{});
18391840
\\
18401841
);

0 commit comments

Comments
 (0)