Skip to content

Commit 14e7a14

Browse files
authored
Update helper function name
1 parent 0386cb7 commit 14e7a14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pubgrub_crate/strategy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Generalizing this strategy to picking the potential package with the lowest
6060
number of valid versions is a rather good heuristic performance-wise.
6161

6262
This strategy is the one employed by the `OfflineDependencyProvider`.
63-
For convenience, we also provide a helper function `make_fewest_versions_decision_helper`
63+
For convenience, we also provide a helper function `choose_package_with_fewest_versions`
6464
directly embedding this strategy.
6565
It can be used directly in `choose_package_version` if provided
6666
a helper function to retrieve existing versions of a package
@@ -70,7 +70,7 @@ a helper function to retrieve existing versions of a package
7070
## Picking a version
7171

7272
By default, the version returned by the helper function
73-
`make_fewest_versions_decision_helper` is the first compatible one
73+
`choose_package_with_fewest_versions` is the first compatible one
7474
in the iterator returned by `list_available_versions` for the chosen package.
7575
So you can order the iterator with preferred versions first
7676
and they will be picked by the solver.
@@ -88,5 +88,5 @@ In general, letting the dependency provider choose a version in
8888
- choosing already downloaded versions,
8989
- choosing versions specified in a lock file,
9090

91-
and many other desirable behavior for the resolver,
91+
and many other desirable behaviors for the resolver,
9292
controlled directly by the dependency provider.

0 commit comments

Comments
 (0)