Skip to content

Commit

Permalink
docs: make comment for module, not function
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Nov 28, 2024
1 parent 734f754 commit 3627281
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions harper-ls/src/pos_conv.rs
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit 3627281

Please sign in to comment.