Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
docs: make comment for module, not function
Elijah Potter36272811a347
diff --git a/harper-ls/src/pos_conv.rs b/harper-ls/src/pos_conv.rsindex 4598ce63c..dd2a82729 100644--- a/harper-ls/src/pos_conv.rs+++ b/harper-ls/src/pos_conv.rs@@ -1,8 +1,9 @@+//! This module includes various conversions from the index-based [`Span`]s that+//! Harper uses, and the Ranges that the LSP uses.+use harper_core::Span;use tower_lsp::lsp_types::{Position, Range};-/// This module includes various conversions from the index-based [`Span`]s that-/// Harper uses, and the Ranges that the LSP uses.pub fn span_to_range(source: &[char], span: Span) -> Range {let start = index_to_position(source, span.start);let end = index_to_position(source, span.end);