Fix possessive "its" in docs and comments (#3998)
This PR fixes a number of places where we were incorrectly using "it's" where we needed to use the possessive "its". Release Notes: - N/A
This commit is contained in:
parent
1c77104050
commit
aff119b80a
15 changed files with 43 additions and 43 deletions
|
@ -41,8 +41,8 @@ pub fn truncate(s: &str, max_chars: usize) -> &str {
|
|||
}
|
||||
}
|
||||
|
||||
/// Removes characters from the end of the string if it's length is greater than `max_chars` and
|
||||
/// appends "..." to the string. Returns string unchanged if it's length is smaller than max_chars.
|
||||
/// Removes characters from the end of the string if its length is greater than `max_chars` and
|
||||
/// appends "..." to the string. Returns string unchanged if its length is smaller than max_chars.
|
||||
pub fn truncate_and_trailoff(s: &str, max_chars: usize) -> String {
|
||||
debug_assert!(max_chars >= 5);
|
||||
|
||||
|
@ -53,8 +53,8 @@ pub fn truncate_and_trailoff(s: &str, max_chars: usize) -> String {
|
|||
}
|
||||
}
|
||||
|
||||
/// Removes characters from the front of the string if it's length is greater than `max_chars` and
|
||||
/// prepends the string with "...". Returns string unchanged if it's length is smaller than max_chars.
|
||||
/// Removes characters from the front of the string if its length is greater than `max_chars` and
|
||||
/// prepends the string with "...". Returns string unchanged if its length is smaller than max_chars.
|
||||
pub fn truncate_and_remove_front(s: &str, max_chars: usize) -> String {
|
||||
debug_assert!(max_chars >= 5);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue