about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorTharun Thennarasu <tharun242424@gmail.com>2024-04-06 14:54:44 +0530
committerGitHub <noreply@github.com>2024-04-06 11:24:44 +0200
commit5bcb08ea0326908bee7ffda009d46da7da1f2668 (patch)
tree48b19fcbc8649046274ced476661864e9145ef12 /lib
parent05eeb695b267a0114d0bfbb54100de96341c0536 (diff)
downloadnixlib-5bcb08ea0326908bee7ffda009d46da7da1f2668.tar
nixlib-5bcb08ea0326908bee7ffda009d46da7da1f2668.tar.gz
nixlib-5bcb08ea0326908bee7ffda009d46da7da1f2668.tar.bz2
nixlib-5bcb08ea0326908bee7ffda009d46da7da1f2668.tar.lz
nixlib-5bcb08ea0326908bee7ffda009d46da7da1f2668.tar.xz
nixlib-5bcb08ea0326908bee7ffda009d46da7da1f2668.tar.zst
nixlib-5bcb08ea0326908bee7ffda009d46da7da1f2668.zip
lib.hasAttrByPath: fix typo (#302042)
Diffstat (limited to 'lib')
-rw-r--r--lib/attrsets.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix
index de5968b95348..49d311ed37b3 100644
--- a/lib/attrsets.nix
+++ b/lib/attrsets.nix
@@ -87,9 +87,9 @@ rec {
     Nix has a [has attribute operator `?`](https://nixos.org/manual/nix/stable/language/operators#has-attribute), which is sufficient for such queries, as long as the number of attributes is static. For example:
 
     ```nix
-    (x?a.b) == hasAttryByPath ["a" "b"] x
+    (x?a.b) == hasAttrByPath ["a" "b"] x
     # and
-    (x?${f p}."example.com") == hasAttryByPath [ (f p) "example.com" ] x
+    (x?${f p}."example.com") == hasAttrByPath [ (f p) "example.com" ] x
     ```
 
     **Laws**: