Apply suggestions from code review
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
parent
1879c7c95e
commit
dc075dcdd0
2 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ DerivedPath::Built DerivedPath::Built::parse(const Store & store, std::string_vi
|
||||||
|
|
||||||
DerivedPath DerivedPath::parse(const Store & store, std::string_view s)
|
DerivedPath DerivedPath::parse(const Store & store, std::string_view s)
|
||||||
{
|
{
|
||||||
size_t n = s.rfind("!");
|
size_t n = s.find("!");
|
||||||
return n == s.npos
|
return n == s.npos
|
||||||
? (DerivedPath) DerivedPath::Opaque::parse(store, s)
|
? (DerivedPath) DerivedPath::Opaque::parse(store, s)
|
||||||
: (DerivedPath) DerivedPath::Built::parse(store, s.substr(0, n), s.substr(n + 1));
|
: (DerivedPath) DerivedPath::Built::parse(store, s.substr(0, n), s.substr(n + 1));
|
||||||
|
|
|
@ -187,7 +187,7 @@ operate are determined as follows:
|
||||||
and likewise, again using a store path to a "drv" file to specify the derivation:
|
and likewise, again using a store path to a "drv" file to specify the derivation:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
# nix path-info -S --eval-store auto --store https://cache.nixos.org '/nix/store/gzaflydcr6sb3567hap9q6srzx8ggdgg-glibc-2.33-78.drv^*'
|
# nix path-info -S '/nix/store/gzaflydcr6sb3567hap9q6srzx8ggdgg-glibc-2.33-78.drv^*'
|
||||||
…
|
…
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue