From 61ffa8466bbfa4ca8b13b442a3bd63ef9504a6da Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 30 Apr 2025 06:23:27 -0300 Subject: src/content/en/: Unpluralize collection names --- src/content/en/pastebin/2018/07/13/nix-strpad.adoc | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/content/en/pastebin/2018/07/13/nix-strpad.adoc (limited to 'src/content/en/pastebin/2018/07/13/nix-strpad.adoc') diff --git a/src/content/en/pastebin/2018/07/13/nix-strpad.adoc b/src/content/en/pastebin/2018/07/13/nix-strpad.adoc new file mode 100644 index 0000000..71e8168 --- /dev/null +++ b/src/content/en/pastebin/2018/07/13/nix-strpad.adoc @@ -0,0 +1,8 @@ += Nix string padding +:categories: nix +:sort: 1 + +[source,nix] +---- +padString = (n: if n < 10 then "0" + toString n else toString n) +---- -- cgit v1.2.3