about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2020-08-03 01:01:52 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2020-10-12 14:47:55 +0100
commitdbb058302388824b717816b42bbfbc00330fa36d (patch)
treeff67041512406a27f186d3a78884f4d55a2d924e /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parenta8d6da3f57f9cc85ddbe1d73e72e3523de7ac245 (diff)
downloadrust-dbb058302388824b717816b42bbfbc00330fa36d.tar.gz
rust-dbb058302388824b717816b42bbfbc00330fa36d.zip
docs: Reword `str::strip_prefix` and `strip_suffix` a bit
"Some is returned with <some value>" is an awkward construction.
The use of the passive voice is a bit odd, and doesn't seem like the
house style.

So say instead "returns X, wrapped in `Some`", for which there is some
other precedent in stdlib.

Instead of repeating "with the prefix removed", say "after the
prefix".  This is a bit clearer that the original is not modified.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions