Skip to content

Commit 9ccc05d

Browse files
committed
doc: Clarify that indices in move_cursor_to are 0-based.
1 parent 2ab6622 commit 9ccc05d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ impl Term {
396396
terminal_size(self)
397397
}
398398

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

0 commit comments

Comments
 (0)