Merge pull request #51 from nix-community/special-specialized-specialisation

Lanzatool: spell specialised consistently
This commit is contained in:
nikstur 2023-01-06 23:33:51 +01:00 committed by GitHub
commit 47085e8578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ fn nixos_path(path: impl AsRef<Path>, name: &str) -> Result<PathBuf> {
} }
fn generation_path(generation: &Generation) -> PathBuf { fn generation_path(generation: &Generation) -> PathBuf {
if let Some(specialisation_name) = generation.is_specialized() { if let Some(specialisation_name) = generation.is_specialised() {
PathBuf::from(format!( PathBuf::from(format!(
"nixos-generation-{}-specialisation-{}.efi", "nixos-generation-{}-specialisation-{}.efi",
generation, specialisation_name generation, specialisation_name

View File

@ -64,7 +64,7 @@ impl Generation {
}) })
} }
pub fn is_specialized(&self) -> Option<SpecialisationName> { pub fn is_specialised(&self) -> Option<SpecialisationName> {
self.specialisation_name.clone() self.specialisation_name.clone()
} }