Skip to content

Commit

Permalink
doc: Clarify that indices in move_cursor_to are 0-based.
Browse files Browse the repository at this point in the history
  • Loading branch information
grunweg committed Feb 17, 2022
1 parent 2ab6622 commit 9ccc05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ impl Term {
terminal_size(self)
}

/// Move the cursor to row `x` and column `y`.
/// Move the cursor to row `x` and column `y`. Values are 0-based.
#[inline]
pub fn move_cursor_to(&self, x: usize, y: usize) -> io::Result<()> {
move_cursor_to(self, x, y)
Expand Down

0 comments on commit 9ccc05d

Please sign in to comment.