Rollup merge of #129916 - tshepang:basic-usage, r=ChrisDenton · patricklam/verify-rust-std@c313c07

@@ -617,8 +617,6 @@ impl Command {

617617

///

618618

/// # Examples

619619

///

620-

/// Basic usage:

621-

///

622620

/// ```no_run

623621

/// use std::process::Command;

624622

///

@@ -699,8 +697,6 @@ impl Command {

699697

///

700698

/// # Examples

701699

///

702-

/// Basic usage:

703-

///

704700

/// ```no_run

705701

/// use std::process::Command;

706702

///

@@ -748,8 +744,6 @@ impl Command {

748744

///

749745

/// # Examples

750746

///

751-

/// Basic usage:

752-

///

753747

/// ```no_run

754748

/// use std::process::Command;

755749

///

@@ -786,8 +780,6 @@ impl Command {

786780

///

787781

/// # Examples

788782

///

789-

/// Basic usage:

790-

///

791783

/// ```no_run

792784

/// use std::process::Command;

793785

///

@@ -822,8 +814,6 @@ impl Command {

822814

///

823815

/// # Examples

824816

///

825-

/// Basic usage:

826-

///

827817

/// ```no_run

828818

/// use std::process::{Command, Stdio};

829819

/// use std::env;

@@ -870,8 +860,6 @@ impl Command {

870860

///

871861

/// # Examples

872862

///

873-

/// Basic usage:

874-

///

875863

/// ```no_run

876864

/// use std::process::Command;

877865

///

@@ -900,8 +888,6 @@ impl Command {

900888

///

901889

/// # Examples

902890

///

903-

/// Basic usage:

904-

///

905891

/// ```no_run

906892

/// use std::process::Command;

907893

///

@@ -928,8 +914,6 @@ impl Command {

928914

///

929915

/// # Examples

930916

///

931-

/// Basic usage:

932-

///

933917

/// ```no_run

934918

/// use std::process::Command;

935919

///

@@ -959,8 +943,6 @@ impl Command {

959943

///

960944

/// # Examples

961945

///

962-

/// Basic usage:

963-

///

964946

/// ```no_run

965947

/// use std::process::{Command, Stdio};

966948

///

@@ -988,8 +970,6 @@ impl Command {

988970

///

989971

/// # Examples

990972

///

991-

/// Basic usage:

992-

///

993973

/// ```no_run

994974

/// use std::process::{Command, Stdio};

995975

///

@@ -1017,8 +997,6 @@ impl Command {

1017997

///

1018998

/// # Examples

1019999

///

1020-

/// Basic usage:

1021-

///

10221000

/// ```no_run

10231001

/// use std::process::{Command, Stdio};

10241002

///

@@ -1039,8 +1017,6 @@ impl Command {

10391017

///

10401018

/// # Examples

10411019

///

1042-

/// Basic usage:

1043-

///

10441020

/// ```no_run

10451021

/// use std::process::Command;

10461022

///

@@ -2105,8 +2081,6 @@ impl Child {

21052081

///

21062082

/// # Examples

21072083

///

2108-

/// Basic usage:

2109-

///

21102084

/// ```no_run

21112085

/// use std::process::Command;

21122086

///

@@ -2129,8 +2103,6 @@ impl Child {

21292103

///

21302104

/// # Examples

21312105

///

2132-

/// Basic usage:

2133-

///

21342106

/// ```no_run

21352107

/// use std::process::Command;

21362108

///

@@ -2158,8 +2130,6 @@ impl Child {

21582130

///

21592131

/// # Examples

21602132

///

2161-

/// Basic usage:

2162-

///

21632133

/// ```no_run

21642134

/// use std::process::Command;

21652135

///

@@ -2194,8 +2164,6 @@ impl Child {

21942164

///

21952165

/// # Examples

21962166

///

2197-

/// Basic usage:

2198-

///

21992167

/// ```no_run

22002168

/// use std::process::Command;

22012169

///

@@ -2398,15 +2366,11 @@ pub fn abort() -> ! {

23982366

///

23992367

/// # Examples

24002368

///

2401-

/// Basic usage:

2402-

///

24032369

/// ```no_run

24042370

/// use std::process;

24052371

///

24062372

/// println!("My pid is {}", process::id());

24072373

/// ```

2408-

///

2409-

///

24102374

#[must_use]

24112375

#[stable(feature = "getpid", since = "1.26.0")]

24122376

pub fn id() -> u32 {