aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-06-01 17:49:08 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-06-01 17:49:08 +0000
commit401165692d807f4b9d0df756fd9b500408039092 (patch)
treeae04b21ee7bcfed9d6ff78377a91c00e38b3b159
parent351bb6835a3ba5d81016e074c466f5c01cc98c37 (diff)
downloadpaludis-401165692d807f4b9d0df756fd9b500408039092.tar.gz
paludis-401165692d807f4b9d0df756fd9b500408039092.tar.xz
(ruby) Fix variable name/comment.
-rw-r--r--doc/api/cplusplus/examples/example_selection.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/cplusplus/examples/example_selection.cc b/doc/api/cplusplus/examples/example_selection.cc
index 4059009..bf133ee 100644
--- a/doc/api/cplusplus/examples/example_selection.cc
+++ b/doc/api/cplusplus/examples/example_selection.cc
@@ -28,14 +28,14 @@ using std::endl;
namespace
{
/* Run a particular selection, and show its results. */
- void show_selection(const std::tr1::shared_ptr<const Environment> & env, const Selection & query)
+ void show_selection(const std::tr1::shared_ptr<const Environment> & env, const Selection & selection)
{
/* Selections support a crude form of stringification. */
- cout << query << ":" << endl;
+ cout << selection << ":" << endl;
- /* Usually the only thing clients will do with a Query object is pass it
+ /* Usually the only thing clients will do with a Selection object is pass it
* to Environment::operator[]. */
- std::tr1::shared_ptr<const PackageIDSequence> ids((*env)[query]);
+ std::tr1::shared_ptr<const PackageIDSequence> ids((*env)[selection]);
/* Show the results */
if (! ids->empty())