From e5534d4641a711955393e583b3e42b49a2eed2c1 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 11 Apr 2018 18:10:16 -0400 Subject: [PATCH] Redefine `mul` to disambiguate It's not immediately obvious which previous `mul` definition applies, and is a copy-paste hazard. Staring the block with a `mul = ...` is also consistent with the other code blocks. Fixes #46 --- pills/05/argument-set-error.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/pills/05/argument-set-error.txt b/pills/05/argument-set-error.txt index a741df9..a5a4802 100644 --- a/pills/05/argument-set-error.txt +++ b/pills/05/argument-set-error.txt @@ -1,3 +1,4 @@ +nix-repl> mul = { a, b }: a*b nix-repl> mul { a = 3; b = 4; c = 6; } error: anonymous function at (string):1:2 called with unexpected argument `c', at (string):1:1 nix-repl> mul { a = 3; }