diff --git a/doc/stdenv.xml b/doc/stdenv.xml
index 69604fcf99da..4f121e328cb7 100644
--- a/doc/stdenv.xml
+++ b/doc/stdenv.xml
@@ -372,7 +372,7 @@ let f(h, h + 1, i) = i + h
They are programs/libraries used at build time that furthermore produce
programs/libraries also used at build time. If the dependency doesn't
care about the target platform (i.e. isn't a compiler or similar tool),
- put it in nativeBuildInputsinstead. The most common
+ put it in nativeBuildInputs instead. The most common
use for this buildPackages.stdenv.cc, the default C
compiler for this role. That example crops up more than one might think
in old commonly used C libraries.
@@ -2100,7 +2100,7 @@ someVar=$(stripHash $name)
In order to alleviate this burden, the setup
- hookmechanism was written, where any package can include a
+ hook mechanism was written, where any package can include a
shell script that [by convention rather than enforcement by Nix], any
downstream reverse-dependency will source as part of its build process. That
allows the downstream dependency to merely specify its dependencies, and