diff --git a/pkgs/build-support/snap/example-firefox.nix b/doc/functions/snap/example-firefox.nix
similarity index 100%
rename from pkgs/build-support/snap/example-firefox.nix
rename to doc/functions/snap/example-firefox.nix
diff --git a/pkgs/build-support/snap/example-hello.nix b/doc/functions/snap/example-hello.nix
similarity index 100%
rename from pkgs/build-support/snap/example-hello.nix
rename to doc/functions/snap/example-hello.nix
diff --git a/doc/functions/snaptools.xml b/doc/functions/snaptools.xml
index a951c36730d3..d0e3efdf6c67 100644
--- a/doc/functions/snaptools.xml
+++ b/doc/functions/snaptools.xml
@@ -38,7 +38,7 @@
The following expression packages GNU Hello as a Snapcraft snap.
-
+
nix-build this expression and install it with
snap install ./result --dangerous.
@@ -57,7 +57,7 @@
example uses Firefox as an example, because it is one of the most
complicated programs we could package.
-
+
nix-build this expression and install it with
snap install ./result --dangerous.