File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ of `libc` in its implementation. This allows it to support `no_std` on
23
23
24
24
<hr >
25
25
26
- is-terminal is a simple utility that answers one question:
26
+ rustix- is-terminal is a simple utility that answers one question:
27
27
28
28
> Is this a terminal?
29
29
@@ -50,7 +50,7 @@ passed to it, in accordance with [I/O safety].
50
50
## Example
51
51
52
52
``` rust
53
- use is_terminal :: IsTerminal ;
53
+ use rustix_is_terminal :: IsTerminal ;
54
54
55
55
fn main () {
56
56
if std :: io :: stdout (). is_terminal () {
Original file line number Diff line number Diff line change 1
- use is_terminal :: IsTerminal ;
1
+ use rustix_is_terminal :: IsTerminal ;
2
2
3
3
fn main ( ) {
4
4
println ! ( "stdin? {}" , std:: io:: stdin( ) . is_terminal( ) ) ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub trait IsTerminal {
43
43
/// # Example
44
44
///
45
45
/// ```
46
- /// use is_terminal ::IsTerminal;
46
+ /// use rustix_is_terminal ::IsTerminal;
47
47
///
48
48
/// if std::io::stdout().is_terminal() {
49
49
/// println!("stdout is a terminal")
@@ -61,7 +61,7 @@ pub trait IsTerminal {
61
61
/// # Example
62
62
///
63
63
/// ```
64
- /// if is_terminal ::is_terminal(&std::io::stdout()) {
64
+ /// if rustix_is_terminal ::is_terminal(&std::io::stdout()) {
65
65
/// println!("stdout is a terminal")
66
66
/// }
67
67
/// ```
You can’t perform that action at this time.
0 commit comments