Commit 8be944f
authored
Rollup merge of rust-lang#160472 - bushrat011899:io_documentation_v2, r=nia-e
Minor fixes to `core::io` & `alloc::io` Documentation
ACP: rust-lang/libs-team#755
Tracking issue: rust-lang#154046
Supersedes: rust-lang#160413
## Description
Minor tweaks to the documentation in `core::io` and `alloc::io` after proof-reading. In rust-lang#160413 I attempted to rewrite all example snippets to be `no_std`/`no_alloc` compatible where relevant. I've closed that in favour of smaller adjustments, as there are many examples of `std`-requiring code snippets in `core` documentation (e.g., [`core::borrow`](https://doc.rust-lang.org/stable/core/borrow/trait.Borrow.html)).
---
## Notes
* No AI tooling of any kind was used during the creation of this PR.4 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
| 1118 | + | |
1118 | 1119 | | |
1119 | 1120 | | |
1120 | 1121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments