about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_system.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-31 08:03:14 +0200
committerGitHub <noreply@github.com>2023-03-31 08:03:14 +0200
commit41369b734d2e0afdde5bb1856286b92d52050dd8 (patch)
tree7fd63263c0c668bc5535d2576851844ddd8d2535 /compiler/rustc_codegen_gcc/example/alloc_system.rs
parent276029deae08ad5b62f7d1ef2ea1acb7f5f529d8 (diff)
parent9fe3a39e3467da1c8a291e7c16f498e3aacfd353 (diff)
downloadrust-41369b734d2e0afdde5bb1856286b92d52050dd8.tar.gz
rust-41369b734d2e0afdde5bb1856286b92d52050dd8.zip
Rollup merge of #109598 - veera-sivarajan:improve-wording, r=thomcc
Improve documentation for str::replace() and str::replacen()

Currently, to know what the function will return when the pattern doesn't match, the docs require the reader to understand the implementation detail and mentally evaluate or run the example code. It is not immediately clear.

This PR makes it more explicit so the reader can quickly find the information.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_system.rs')
0 files changed, 0 insertions, 0 deletions