lib/strings: fix example for isStorePath

Since it checks if dirOf x is the nix store dir, a trailing slash will
break this check and make it return false.
This commit is contained in:
sternenseemann 2021-04-14 12:02:36 +02:00
parent 5af7d3ebbd
commit 326d0970e0

View File

@ -659,7 +659,7 @@ rec {
Example:
isStorePath "/nix/store/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11/bin/python"
=> false
isStorePath "/nix/store/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11/"
isStorePath "/nix/store/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11"
=> true
isStorePath pkgs.python
=> true