From de1c4d2974318173a42edf4e13bebc28084b39d7 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Sun, 17 Oct 2021 19:52:51 -0700 Subject: [PATCH] Fix code examples syntax --- rfcs/0110-inherit-as-list.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rfcs/0110-inherit-as-list.md b/rfcs/0110-inherit-as-list.md index 4637c8a..1d53916 100644 --- a/rfcs/0110-inherit-as-list.md +++ b/rfcs/0110-inherit-as-list.md @@ -92,11 +92,11 @@ meta.maintainers = inherit (lib.maintainers) [ johndoe janedoe ]; And build inputs which are commonly extracted from attrsets: ```nix -buildInputs = inherit (darwin.apple_sdk.frameworks) [ +buildInputs = (inherit (darwin.apple_sdk.frameworks) [ IOKit -] ++ inherit (llvmPackages) [ +]) ++ (inherit (llvmPackages) [ llvm -]; +]); ``` # Drawbacks @@ -112,7 +112,7 @@ buildInputs = inherit (darwin.apple_sdk.frameworks) [ * Skillful use of `with` to avoid its drawbacks * Fine-grained attribute selection via existing (more verbose) language - features, such as `builtins.attrValues (inherit (attrs) a b c;)` + features, such as `builtins.attrValues { inherit (attrs) a b c; }` # Unresolved questions [unresolved]: #unresolved-questions