Skip to content

Commit a767052

Browse files
authored
Merge pull request #233 from PointKernel/fix-dynamic-map-doc
Fix dynamic map doc
2 parents 8214858 + 444cb0b commit a767052

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/cuco/dynamic_map.cuh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,16 @@ namespace cuco {
5858
* Example:
5959
* \code{.cpp}
6060
* int empty_key_sentinel = -1;
61-
* int empty_value_sentine = -1;
61+
* int empty_value_sentinel = -1;
6262
*
6363
* // Constructs a map with 100,000 initial slots using -1 and -1 as the empty key/value
6464
* // sentinels. Performs one bulk insert of 50,000 keys and a second bulk insert of
6565
* // 100,000 keys. The map automatically increases capacity to accomodate the excess keys
6666
* // within the second insert.
6767
*
68-
* dynamic_map<int, int> m{100'000, empty_key_sentinel, empty_value_sentinel};
68+
* dynamic_map<int, int> m{100'000,
69+
* sentinel::empty_key<int>{empty_key_sentinel},
70+
* sentinel::empty_value<int>{empty_value_sentinel}};
6971
*
7072
* // Create a sequence of pairs {{0,0}, {1,1}, ... {i,i}}
7173
* thrust::device_vector<thrust::pair<int,int>> pairs_0(50'000);

0 commit comments

Comments
 (0)