mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
treewide: fix or-as-identifier (#475723)
This commit is contained in:
@@ -110,7 +110,7 @@ let
|
||||
const
|
||||
pipe
|
||||
concat
|
||||
or
|
||||
"or"
|
||||
and
|
||||
xor
|
||||
bitAnd
|
||||
|
||||
@@ -433,7 +433,7 @@ rec {
|
||||
else if all isAttrs list then
|
||||
foldl' lib.mergeAttrs { } list
|
||||
else if all isBool list then
|
||||
foldl' lib.or false list
|
||||
foldl' lib."or" false list
|
||||
else if all isString list then
|
||||
lib.concatStrings list
|
||||
else if all isInt list && all (x: x == head list) list then
|
||||
|
||||
@@ -197,7 +197,7 @@ in
|
||||
|
||||
: 2\. Function argument
|
||||
*/
|
||||
or = x: y: x || y;
|
||||
"or" = x: y: x || y;
|
||||
|
||||
/**
|
||||
boolean “and”
|
||||
|
||||
Reference in New Issue
Block a user