pub fn join(&mut self, line: usize) {
        let c = self.line_width(line).expect(
            &format!("line {}: out of range", line),
        );
        self.replace_char(' ', line, c);
    }
/// Join a line and next line.
///
/// # Examples
///
/// ```
/// # use edit::editor::Editor;
/// let mut editor = Editor::new("a b c d\n\
///                           x", 0, 3).unwrap();
/// editor.join(0);
/// assert_eq!(editor.buffer_as_str(), "a b c d x");
/// ```
Join a line and next line.
Join a line and next line .
pub fn join(&mut self, line: usize) {
        let c = self.line_width(line).expect(
            &format!("line {}: out of range", line),
        );
        self.replace_char(' ', line, c);
    }
pub fn join ( & mut self , line : usize ) { let c = self . line_width ( line ) . expect ( & format ! ( " " line ) , ) ; self . replace_char ( ' ' , line , c ) ; }
Join a line and next line.
Join a line and next line .
&mut self
line
usize
&mut self
line
usize
examples
None
use edit::editor::editor;
let mut editor = Editor::new("a b c d\n\
x", 0, 3).unwrap();
editor.join(0);
assert_eq!(editor.buffer_as_str(), "a b c d x");
```
let mut editor = Editor :: new ( " a b c d \ n \ x " 0 3 ) . unwrap () ; editor . join ( 0 ) ; assert_eq! ( editor . buffer_as_str () " a b c d x " ) ; ` ` `