mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
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:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user