about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-15T15·11+0100
committerflokli <flokli@flokli.de>2023-10-16T11·32+0000
commitc739df3d78a81ea7943051a95702801eb3d219e9 (patch)
tree3c9ae6d1a816748090826a37e466b65ebdba5cb2 /tvix
parentc50967c1f10013ce91258b308313d7eabeb05155 (diff)
refactor(nix-compat/derivation): fix function name r/6828
typo: write_enviroment -> write_environment.
Change-Id: I1a2dc826c0bf71f6ba97fe41c4d44619b5e6beff
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9739
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix')
-rw-r--r--tvix/nix-compat/src/derivation/mod.rs2
-rw-r--r--tvix/nix-compat/src/derivation/write.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tvix/nix-compat/src/derivation/mod.rs b/tvix/nix-compat/src/derivation/mod.rs
index 7a15f0ee06e5..a06f8eb160ae 100644
--- a/tvix/nix-compat/src/derivation/mod.rs
+++ b/tvix/nix-compat/src/derivation/mod.rs
@@ -70,7 +70,7 @@ impl Derivation {
         write_arguments(writer, &self.arguments)?;
         write_char(writer, COMMA)?;
 
-        write_enviroment(writer, &self.environment)?;
+        write_environment(writer, &self.environment)?;
 
         write_char(writer, PAREN_CLOSE)?;
 
diff --git a/tvix/nix-compat/src/derivation/write.rs b/tvix/nix-compat/src/derivation/write.rs
index 01e533ced83b..0655cb8cded2 100644
--- a/tvix/nix-compat/src/derivation/write.rs
+++ b/tvix/nix-compat/src/derivation/write.rs
@@ -174,7 +174,7 @@ pub fn write_arguments(writer: &mut impl Write, arguments: &[String]) -> Result<
     Ok(())
 }
 
-pub fn write_enviroment<E, K, V>(writer: &mut impl Write, environment: E) -> Result<(), io::Error>
+pub fn write_environment<E, K, V>(writer: &mut impl Write, environment: E) -> Result<(), io::Error>
 where
     E: IntoIterator<Item = (K, V)>,
     K: AsRef<[u8]>,