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:
parent
5af7d3ebbd
commit
326d0970e0
@ -659,7 +659,7 @@ rec {
|
|||||||
Example:
|
Example:
|
||||||
isStorePath "/nix/store/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11/bin/python"
|
isStorePath "/nix/store/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11/bin/python"
|
||||||
=> false
|
=> false
|
||||||
isStorePath "/nix/store/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11/"
|
isStorePath "/nix/store/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11"
|
||||||
=> true
|
=> true
|
||||||
isStorePath pkgs.python
|
isStorePath pkgs.python
|
||||||
=> true
|
=> true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user