Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

language: Fix incorrectly-formatted doc comment (#25151)

Marshall Bowersd4b2e88ab899
diff --git a/crates/language/src/buffer.rs b/crates/language/src/buffer.rs
index 022031a0468..fa6909f2e9b 100644
--- a/crates/language/src/buffer.rs
+++ b/crates/language/src/buffer.rs
@@ -2759,10 +2759,12 @@ impl Deref for Buffer {
}
impl BufferSnapshot {
- /// Returns [`IndentSize`] for a given line that respects user settings and /// language preferences.
+ /// Returns [`IndentSize`] for a given line that respects user settings and
+ /// language preferences.
pub fn indent_size_for_line(&self, row: u32) -> IndentSize {
indent_size_for_line(self, row)
}
+
/// Returns [`IndentSize`] for a given position that respects user settings
/// and language preferences.
pub fn language_indent_size_at<T: ToOffset>(&self, position: T, cx: &App) -> IndentSize {