Use dot references in docs for methods (#7391)

## Summary

This matches the convention used in the Python documentation.
This commit is contained in:
Charlie Marsh 2023-09-14 14:35:34 -04:00 committed by GitHub
parent 21539f1663
commit 6856d0b44b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 18 additions and 18 deletions

View file

@ -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
///

View file

@ -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
///