about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-03-15 17:24:08 +0100
committerGitHub <noreply@github.com>2024-03-15 17:24:08 +0100
commit4002638a44a7b7e0728ed1f1252075888bf2cb27 (patch)
tree75abb5dea135c472dc4396c26aa1f52c3aaf1aab /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent5325c2bdd1715d6140b17c2f811972f46308eca5 (diff)
parent07e0182fd3276bb09081a67dbd6cb69910f14413 (diff)
downloadrust-4002638a44a7b7e0728ed1f1252075888bf2cb27.tar.gz
rust-4002638a44a7b7e0728ed1f1252075888bf2cb27.zip
Rollup merge of #122512 - baitcode:2024-03-14-buffer-documentation-fix, r=Nilstrieb
Cursor.rs documentation fix

Reason:

I've been learning Rust std library and got confused. Seek trait documentation clearly states that negative indexes will cause an error. And the code in the Cursor example uses negative index. I found myself trying to understand what am I missing until I've actually executed the code and got error. I decided to submit small fix to the documentation.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions