mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue