Skip to content

Commit

Permalink
Rename is_terminal to rustix_is_terminal in more places.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jan 22, 2024
1 parent 71d200c commit b40a014
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ of `libc` in its implementation. This allows it to support `no_std` on

<hr>

is-terminal is a simple utility that answers one question:
rustix-is-terminal is a simple utility that answers one question:

> Is this a terminal?
Expand All @@ -50,7 +50,7 @@ passed to it, in accordance with [I/O safety].
## Example

```rust
use is_terminal::IsTerminal;
use rustix_is_terminal::IsTerminal;

fn main() {
if std::io::stdout().is_terminal() {
Expand Down
2 changes: 1 addition & 1 deletion examples/stdio.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use is_terminal::IsTerminal;
use rustix_is_terminal::IsTerminal;

fn main() {
println!("stdin? {}", std::io::stdin().is_terminal());
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub trait IsTerminal {
/// # Example
///
/// ```
/// use is_terminal::IsTerminal;
/// use rustix_is_terminal::IsTerminal;
///
/// if std::io::stdout().is_terminal() {
/// println!("stdout is a terminal")
Expand All @@ -61,7 +61,7 @@ pub trait IsTerminal {
/// # Example
///
/// ```
/// if is_terminal::is_terminal(&std::io::stdout()) {
/// if rustix_is_terminal::is_terminal(&std::io::stdout()) {
/// println!("stdout is a terminal")
/// }
/// ```
Expand Down

0 comments on commit b40a014

Please sign in to comment.