Skip to content

Commit

Permalink
Merge pull request #53 from jclulow/illumos-case
Browse files Browse the repository at this point in the history
"illumos" is officially typeset with a lower-case "i"
  • Loading branch information
sylvestre authored Jul 12, 2023
2 parents 42d651d + adf4a49 commit 841bdd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "platform-info"
version = "2.0.1"
version = "2.0.2"
authors = ["Alex Lyon <[email protected]>"]
edition = "2018"
description = "A simple cross-platform interface to get info about a system"
Expand Down
2 changes: 1 addition & 1 deletion src/lib_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const HOST_OS_NAME: &str = if cfg!(all(
} else if cfg!(target_os = "redox") {
"Redox"
} else if cfg!(target_os = "illumos") {
"Illumos"
"illumos"
} else {
"unknown"
};
Expand Down
4 changes: 2 additions & 2 deletions src/platform/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl Debug for UTSName {
.field("version", &oss_from_cstr(&self.0.version))
.field("machine", &oss_from_cstr(&self.0.machine));
// The domainname field is not part of the POSIX standard but a GNU extension. Therefor
// BSD-like platforms and Illumos are missing the domainname field.
// BSD-like platforms and illumos are missing the domainname field.
#[cfg(not(any(
target_os = "illumos",
target_os = "macos",
Expand Down Expand Up @@ -150,7 +150,7 @@ impl PartialEq for UTSName {
other.0.machine,
);
// The domainname field is not part of the POSIX standard but a GNU extension. Therefor
// BSD-like platforms and Illumos are missing the domainname field.
// BSD-like platforms and illumos are missing the domainname field.
#[cfg(not(any(
target_os = "illumos",
target_os = "macos",
Expand Down

0 comments on commit 841bdd9

Please sign in to comment.