about summary refs log tree commit diff
path: root/src/test/rustdoc/macro-in-async-block.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2020-07-15 13:21:02 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2020-07-15 14:36:12 -0700
commit6da69ec08c4ba0c166d28a65196832f8de877149 (patch)
tree18c861ee05f025b4defa6b70a49d5655b0500e8e /src/test/rustdoc/macro-in-async-block.rs
parent5db778affee7c6600c8e7a177c48282dab3f6292 (diff)
downloadrust-6da69ec08c4ba0c166d28a65196832f8de877149.tar.gz
rust-6da69ec08c4ba0c166d28a65196832f8de877149.zip
Update docs for str::as_bytes_mut.
* Add "Safety" section describing UTF-8 invariant.

* Remove mention of `from_utf8_mut`.  It is not necessary to call
  a function to convert the byte slice back to a string slice.  The
  original string becomes accessible again after the byte slice is
  no longer used (as shown in the example code).
Diffstat (limited to 'src/test/rustdoc/macro-in-async-block.rs')
0 files changed, 0 insertions, 0 deletions