diff options
author | bors <bors@rust-lang.org> | 2023-01-02 01:15:25 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-01-02 01:15:25 +0000 |
commit | ee11bfd8a189462713ea1ede36f4796575ddf894 (patch) | |
tree | 707547aa9f70f00062068b812335bdf305fc6d32 /tests/rustdoc-js-std/parser-errors.js | |
parent | e11cb36c751550cf197e23440d53f04156c3a2a3 (diff) | |
parent | 3a6ceeb18f7f2bf6f5c8c647d4f747fdf47bef7b (diff) | |
download | rust-ee11bfd8a189462713ea1ede36f4796575ddf894.tar.gz |
Auto merge of #106352 - kornelski:read_line-doc, r=scottmcm
Document read_line gotchas
1. The "You do not need to clear the buffer before appending" advice is ambiguous, because it depends what you use this function for. For a rather common case of reading individual lines in a loop, it _is_ necessary to clear the buffer.
2. The docs warn about a DoS risk. I've added a hint how to mitigate unbounded memory growth.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions