Skip to content

Commit d30a049

Browse files
committed
std: Update seqpacket examples to new feature name too
1 parent cd68dd1 commit d30a049

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/libstd/sys/unix/ext/net.rs

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ impl IntoRawFd for UnixDatagram {
14721472
/// # Examples
14731473
///
14741474
/// ```no_run
1475-
/// #![feature(unix_socket)]
1475+
/// #![feature(unix_socket_seqpacket)]
14761476
/// use std::thread;
14771477
/// use std::os::unix::net::{UnixSeqpacket, UnixSeqpacketListener};
14781478
///
@@ -1517,7 +1517,7 @@ impl UnixSeqpacketListener {
15171517
/// # Examples
15181518
///
15191519
/// ```no_run
1520-
/// #![feature(unix_socket)]
1520+
/// #![feature(unix_socket_seqpacket)]
15211521
/// use std::os::unix::net::UnixSeqpacketListener;
15221522
///
15231523
/// let listener = match UnixSeqpacketListener::bind("/path/to/the/socket") {
@@ -1555,7 +1555,7 @@ impl UnixSeqpacketListener {
15551555
/// # Examples
15561556
///
15571557
/// ```no_run
1558-
/// #![feature(unix_socket)]
1558+
/// #![feature(unix_socket_seqpacket)]
15591559
/// use std::os::unix::net::UnixSeqpacketListener;
15601560
///
15611561
/// let listener = UnixSeqpacketListener::bind("/path/to/the/socket").unwrap();
@@ -1583,7 +1583,7 @@ impl UnixSeqpacketListener {
15831583
/// # Examples
15841584
///
15851585
/// ```no_run
1586-
/// #![feature(unix_socket)]
1586+
/// #![feature(unix_socket_seqpacket)]
15871587
/// use std::os::unix::net::UnixSeqpacketListener;
15881588
///
15891589
/// let listener = UnixSeqpacketListener::bind("/path/to/the/socket").unwrap();
@@ -1600,7 +1600,7 @@ impl UnixSeqpacketListener {
16001600
/// # Examples
16011601
///
16021602
/// ```no_run
1603-
/// #![feature(unix_socket)]
1603+
/// #![feature(unix_socket_seqpacket)]
16041604
/// use std::os::unix::net::UnixSeqpacketListener;
16051605
///
16061606
/// let listener = UnixSeqpacketListener::bind("/path/to/the/socket").unwrap();
@@ -1617,7 +1617,7 @@ impl UnixSeqpacketListener {
16171617
/// # Examples
16181618
///
16191619
/// ```no_run
1620-
/// #![feature(unix_socket)]
1620+
/// #![feature(unix_socket_seqpacket)]
16211621
/// use std::os::unix::net::UnixSeqpacketListener;
16221622
///
16231623
/// let listener = UnixSeqpacketListener::bind("/path/to/the/socket").unwrap();
@@ -1634,7 +1634,7 @@ impl UnixSeqpacketListener {
16341634
/// # Examples
16351635
///
16361636
/// ```no_run
1637-
/// #![feature(unix_socket)]
1637+
/// #![feature(unix_socket_seqpacket)]
16381638
/// use std::os::unix::net::UnixSeqpacketListener;
16391639
///
16401640
/// let listener = UnixSeqpacketListener::bind("/tmp/sock").unwrap();
@@ -1659,7 +1659,7 @@ impl UnixSeqpacketListener {
16591659
/// # Examples
16601660
///
16611661
/// ```no_run
1662-
/// #![feature(unix_socket)]
1662+
/// #![feature(unix_socket_seqpacket)]
16631663
/// use std::thread;
16641664
/// use std::os::unix::net::{UnixSeqpacket, UnixSeqpacketListener};
16651665
///
@@ -1727,7 +1727,7 @@ impl<'a> IntoIterator for &'a UnixSeqpacketListener {
17271727
/// # Examples
17281728
///
17291729
/// ```no_run
1730-
/// #![feature(unix_socket)]
1730+
/// #![feature(unix_socket_seqpacket)]
17311731
/// use std::thread;
17321732
/// use std::os::unix::net::{UnixSeqpacket, UnixSeqpacketListener};
17331733
///
@@ -1775,7 +1775,7 @@ impl<'a> Iterator for IncomingSeqpacket<'a> {
17751775
/// # Examples
17761776
///
17771777
/// ```no_run
1778-
/// #![feature(unix_socket)]
1778+
/// #![feature(unix_socket_seqpacket)]
17791779
/// use std::os::unix::net::UnixSeqpacket;
17801780
///
17811781
/// let path = "/path/to/my/socket";
@@ -1809,7 +1809,7 @@ impl UnixSeqpacket {
18091809
/// # Examples
18101810
///
18111811
/// ```no_run
1812-
/// #![feature(unix_socket)]
1812+
/// #![feature(unix_socket_seqpacket)]
18131813
/// use std::os::unix::net::UnixSeqpacket;
18141814
///
18151815
/// let socket = match UnixSeqpacket::connect("/tmp/socket") {
@@ -1841,7 +1841,7 @@ impl UnixSeqpacket {
18411841
/// # Examples
18421842
///
18431843
/// ```no_run
1844-
/// #![feature(unix_socket)]
1844+
/// #![feature(unix_socket_seqpacket)]
18451845
/// use std::os::unix::net::UnixSeqpacket;
18461846
///
18471847
/// let (sock1, sock2) = match UnixSeqpacket::pair() {
@@ -1867,7 +1867,7 @@ impl UnixSeqpacket {
18671867
/// # Examples
18681868
///
18691869
/// ```no_run
1870-
/// #![feature(unix_socket)]
1870+
/// #![feature(unix_socket_seqpacket)]
18711871
/// use std::os::unix::net::UnixSeqpacket;
18721872
///
18731873
/// let socket = UnixSeqpacket::connect("/path/to/the/socket").unwrap();
@@ -1884,7 +1884,7 @@ impl UnixSeqpacket {
18841884
/// # Examples
18851885
///
18861886
/// ```no_run
1887-
/// #![feature(unix_socket)]
1887+
/// #![feature(unix_socket_seqpacket)]
18881888
/// use std::os::unix::net::UnixSeqpacket;
18891889
///
18901890
/// let socket = UnixSeqpacket::connect("/path/to/the/socket").unwrap();
@@ -1901,7 +1901,7 @@ impl UnixSeqpacket {
19011901
/// # Examples
19021902
///
19031903
/// ```no_run
1904-
/// #![feature(unix_socket)]
1904+
/// #![feature(unix_socket_seqpacket)]
19051905
/// use std::os::unix::net::UnixSeqpacket;
19061906
///
19071907
/// let socket = UnixSeqpacket::connect("/path/to/the/socket").unwrap();
@@ -1920,7 +1920,7 @@ impl UnixSeqpacket {
19201920
/// # Examples
19211921
///
19221922
/// ```no_run
1923-
/// #![feature(unix_socket)]
1923+
/// #![feature(unix_socket_seqpacket)]
19241924
/// use std::os::unix::net::UnixSeqpacket;
19251925
///
19261926
/// let socket = UnixSeqpacket::connect("/path/to/the/socket").unwrap();
@@ -1939,7 +1939,7 @@ impl UnixSeqpacket {
19391939
/// # Examples
19401940
///
19411941
/// ```no_run
1942-
/// #![feature(unix_socket)]
1942+
/// #![feature(unix_socket_seqpacket)]
19431943
/// use std::os::unix::net::UnixSeqpacket;
19441944
///
19451945
/// let socket = UnixSeqpacket::connect("/path/to/the/socket").unwrap();
@@ -1965,7 +1965,7 @@ impl UnixSeqpacket {
19651965
/// # Examples
19661966
///
19671967
/// ```no_run
1968-
/// #![feature(unix_socket)]
1968+
/// #![feature(unix_socket_seqpacket)]
19691969
/// use std::os::unix::net::UnixSeqpacket;
19701970
/// use std::time::Duration;
19711971
///
@@ -1978,7 +1978,7 @@ impl UnixSeqpacket {
19781978
/// method:
19791979
///
19801980
/// ```no_run
1981-
/// #![feature(unix_socket)]
1981+
/// #![feature(unix_socket_seqpacket)]
19821982
/// use std::io;
19831983
/// use std::os::unix::net::UnixSeqpacket;
19841984
/// use std::time::Duration;
@@ -2007,7 +2007,7 @@ impl UnixSeqpacket {
20072007
/// # Examples
20082008
///
20092009
/// ```no_run
2010-
/// #![feature(unix_socket)]
2010+
/// #![feature(unix_socket_seqpacket)]
20112011
/// use std::os::unix::net::UnixSeqpacket;
20122012
/// use std::time::Duration;
20132013
///
@@ -2020,7 +2020,7 @@ impl UnixSeqpacket {
20202020
/// method:
20212021
///
20222022
/// ```no_run
2023-
/// #![feature(unix_socket)]
2023+
/// #![feature(unix_socket_seqpacket)]
20242024
/// use std::io;
20252025
/// use std::os::unix::net::UnixSeqpacket;
20262026
/// use std::time::Duration;
@@ -2040,7 +2040,7 @@ impl UnixSeqpacket {
20402040
/// # Examples
20412041
///
20422042
/// ```no_run
2043-
/// #![feature(unix_socket)]
2043+
/// #![feature(unix_socket_seqpacket)]
20442044
/// use std::os::unix::net::UnixSeqpacket;
20452045
/// use std::time::Duration;
20462046
///
@@ -2059,7 +2059,7 @@ impl UnixSeqpacket {
20592059
/// # Examples
20602060
///
20612061
/// ```no_run
2062-
/// #![feature(unix_socket)]
2062+
/// #![feature(unix_socket_seqpacket)]
20632063
/// use std::os::unix::net::UnixSeqpacket;
20642064
/// use std::time::Duration;
20652065
///
@@ -2078,7 +2078,7 @@ impl UnixSeqpacket {
20782078
/// # Examples
20792079
///
20802080
/// ```no_run
2081-
/// #![feature(unix_socket)]
2081+
/// #![feature(unix_socket_seqpacket)]
20822082
/// use std::os::unix::net::UnixSeqpacket;
20832083
///
20842084
/// let socket = UnixSeqpacket::connect("/path/to/the/socket").unwrap();
@@ -2094,7 +2094,7 @@ impl UnixSeqpacket {
20942094
/// # Examples
20952095
///
20962096
/// ```no_run
2097-
/// #![feature(unix_socket)]
2097+
/// #![feature(unix_socket_seqpacket)]
20982098
/// use std::os::unix::net::UnixSeqpacket;
20992099
///
21002100
/// let socket = UnixSeqpacket::connect("/path/to/the/socket").unwrap();
@@ -2116,7 +2116,7 @@ impl UnixSeqpacket {
21162116
/// [`Shutdown`]: ../../../../std/net/enum.Shutdown.html
21172117
///
21182118
/// ```no_run
2119-
/// #![feature(unix_socket)]
2119+
/// #![feature(unix_socket_seqpacket)]
21202120
/// use std::os::unix::net::UnixSeqpacket;
21212121
/// use std::net::Shutdown;
21222122
///

0 commit comments

Comments
 (0)