about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stdio.rs
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2020-08-17 21:52:49 +0200
committerAleksey Kladov <aleksey.kladov@gmail.com>2020-08-19 22:53:16 +0200
commitccbe94bf77e6a32fc9f31425bc820345be3143c0 (patch)
tree9b5ba0c7121a0908a2a0c9ff0c5f1b8f80ea1c30 /library/std/src/sys/unix/stdio.rs
parent39197e673e79ca91ac6f1484adf3aa051696d575 (diff)
downloadrust-ccbe94bf77e6a32fc9f31425bc820345be3143c0.tar.gz
rust-ccbe94bf77e6a32fc9f31425bc820345be3143c0.zip
Simplify search for bare `\r` in doc comments
Outer `if` is the fast path -- it calls into hyperoptimized memchr.

The inner loop is just the simplest code possible -- it doesn't
generated the tightest code, but that shouldn't matter if we are going
to error anyhow.
Diffstat (limited to 'library/std/src/sys/unix/stdio.rs')
0 files changed, 0 insertions, 0 deletions