@@ -576,9 +576,8 @@ impl Document {
578 /// Detect the indentation used in the file, or otherwise defaults to the language indentation
578 /// Detect the indentation used in the file, or otherwise defaults to the language indentation
579− /// configured in `languages.toml`, with a fallback to 4 space indentation if it isn't
579+ /// configured in `languages.toml`, with a fallback to tabs if it isn't specified. Line ending
580− /// specified. Line ending is likewise auto-detected, and will fallback to the default OS
580+ /// is likewise auto-detected, and will fallback to the default OS line ending.
582 pub fn detect_indent_and_line_ending(&mut self) {
581 pub fn detect_indent_and_line_ending(&mut self) {
583 self.indent_style = auto_detect_indent_style(&self.text).unwrap_or_else(|| {
582 self.indent_style = auto_detect_indent_style(&self.text).unwrap_or_else(|| {
584 self.language_config()
583 self.language_config()