Skip to content

Commit 71e3423

Browse files
committed
add some fix
Signed-off-by: ZHANGWENTAI <[email protected]>
1 parent 161b01a commit 71e3423

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

library/std/src/process.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -2031,9 +2031,10 @@ pub fn id() -> u32 {
20312031
/// The default implementations are returning `libc::EXIT_SUCCESS` to indicate
20322032
/// a successful execution. In case of a failure, `libc::EXIT_FAILURE` is returned.
20332033
///
2034-
/// For the reason that different runtimes have diffrent specificatons on the
2035-
/// return value of the `main` function, this trait is likely to be available
2036-
/// only on standard library's runtime for type convenience.
2034+
/// Because different runtimes have different specifications on the return value
2035+
/// of the `main` function, this trait is likely to be available only on
2036+
/// standard library's runtime for convenience. Other runtimes are not required
2037+
/// to provide similar functionality.
20372038
#[cfg_attr(not(test), lang = "termination")]
20382039
#[unstable(feature = "termination_trait_lib", issue = "43301")]
20392040
#[rustc_on_unimplemented(

0 commit comments

Comments
 (0)