Fix typos
diff --git a/rich/cells.py b/rich/cells.py
index 139b949f7..9354f9e31 100644
--- a/rich/cells.py
+++ b/rich/cells.py
@@ -60,7 +60,7 @@ def _get_codepoint_cell_size(codepoint: int) -> int:
     """Get the cell size of a character.
 
     Args:
-        character (str): A single character.
+        codepoint (int): Codepoint of a character.
 
     Returns:
         int: Number of cells (0, 1 or 2) occupied by that character.
diff --git a/rich/segment.py b/rich/segment.py
index 20ccedf8a..bbc6d3ea0 100644
--- a/rich/segment.py
+++ b/rich/segment.py
@@ -727,7 +727,7 @@ def __rich_console__(
     console.print(Syntax(code, "python", line_numbers=True))
     console.print()
     console.print(
-        "When you call [b]print()[/b], Rich [i]renders[/i] the object in to the the following:\n"
+        "When you call [b]print()[/b], Rich [i]renders[/i] the object in to the following:\n"
     )
     fragments = list(console.render(text))
     console.print(fragments)

## Type of changes

- [ ] Bug fix
- [ ] New feature
- [ ] Documentation / docstrings
- [ ] Tests
- [x] Other

## Checklist

- [x] I've run the latest [black](https://github.com/psf/black) with default args on new code.
- [ ] I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
- [ ] I've added tests for new code.
- [x] I accept that @willmcgugan may be pedantic in the code review.

## Description

Please describe your changes here. If this fixes a bug, please link to the issue, if possible.
