summaryrefslogtreecommitdiff
path: root/src/content/pastebins/2018/07/13/nix-strpad.adoc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-03-31 21:51:40 -0300
committerEuAndreh <eu@euandre.org>2025-03-31 21:51:40 -0300
commit570ec471d1605318aeefb030cd78682ae442235b (patch)
tree51e17eabe37c6689f8799b55e6875c3480329a2c /src/content/pastebins/2018/07/13/nix-strpad.adoc
parentMakefile, mkdeps.sh: Derive index.html and feed.xml from more static "sortdat... (diff)
downloadeuandre.org-570ec471d1605318aeefb030cd78682ae442235b.tar.gz
euandre.org-570ec471d1605318aeefb030cd78682ae442235b.tar.xz
src/content/: Update all files left to asciidoc
Diffstat (limited to 'src/content/pastebins/2018/07/13/nix-strpad.adoc')
-rw-r--r--src/content/pastebins/2018/07/13/nix-strpad.adoc21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/content/pastebins/2018/07/13/nix-strpad.adoc b/src/content/pastebins/2018/07/13/nix-strpad.adoc
index 359bda5..0557b79 100644
--- a/src/content/pastebins/2018/07/13/nix-strpad.adoc
+++ b/src/content/pastebins/2018/07/13/nix-strpad.adoc
@@ -1,19 +1,6 @@
----
+= Nix string padding
-title: Nix string padding
-
-date: 2018-07-13
-
-layout: post
-
-lang: en
-
-eu_categories: nix
-
-ref: nix-string-padding
-
----
-
-```nix
+[source,nix]
+----
padString = (n: if n < 10 then "0" + toString n else toString n)
-```
+----