From 36272811a34791be98ee7a7376aa77bf2d19c7d6 Mon Sep 17 00:00:00 2001 From: Elijah Potter Date: Thu, 28 Nov 2024 10:51:05 -0700 Subject: [PATCH] docs: make comment for module, not function --- harper-ls/src/pos_conv.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/harper-ls/src/pos_conv.rs b/harper-ls/src/pos_conv.rs index 4598ce63..dd2a8272 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);