Skip to content

Commit d54aaed

Browse files
authored
Rollup merge of #145525 - typesanitizer:vg/doc, r=Mark-Simulacrum
stdlib: Replace typedef -> type alias in doc comment 'typedef' is jargon from C and C++. Since the Rust reference uses the term [type alias](https://doc.rust-lang.org/reference/items/type-aliases.html), this patch changes the doc comment in io/error.rs to also use 'type alias'.
2 parents 03aa3b8 + be9cd3c commit d54aaed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/io/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::{error, fmt, result, sys};
1818
/// This type is broadly used across [`std::io`] for any operation which may
1919
/// produce an error.
2020
///
21-
/// This typedef is generally used to avoid writing out [`io::Error`] directly and
21+
/// This type alias is generally used to avoid writing out [`io::Error`] directly and
2222
/// is otherwise a direct mapping to [`Result`].
2323
///
2424
/// While usual Rust style is to import types directly, aliases of [`Result`]

0 commit comments

Comments
 (0)