mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:44:56 +00:00
Use dot references in docs for methods (#7391)
## Summary This matches the convention used in the Python documentation.
This commit is contained in:
parent
21539f1663
commit
6856d0b44b
10 changed files with 18 additions and 18 deletions
|
@ -391,7 +391,7 @@ impl<'a> Locator<'a> {
|
|||
/// Finds the closest [`TextSize`] not exceeding the offset for which `is_char_boundary` is
|
||||
/// `true`.
|
||||
///
|
||||
/// Can be replaced with `str#floor_char_boundary` once it's stable.
|
||||
/// Can be replaced with `str::floor_char_boundary` once it's stable.
|
||||
///
|
||||
/// ## Examples
|
||||
///
|
||||
|
|
|
@ -15,8 +15,8 @@ impl UniversalNewlines for str {
|
|||
}
|
||||
}
|
||||
|
||||
/// Like [`str#lines`], but accommodates LF, CRLF, and CR line endings,
|
||||
/// the latter of which are not supported by [`str#lines`].
|
||||
/// Like [`str::lines`], but accommodates LF, CRLF, and CR line endings,
|
||||
/// the latter of which are not supported by [`str::lines`].
|
||||
///
|
||||
/// ## Examples
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue