Doc: Clears up trim_char doc

Closes #18451
auto merge of #18460 : gamazeps/rust/issue18451, r=steveklabnik

Closes #18451