mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
Fix spelling error: "occurances" -> "occurrences".
[SVN r11376]
This commit is contained in:
parent
9961d5c9af
commit
686f822dea
@ -14,7 +14,7 @@
|
|||||||
//
|
//
|
||||||
// 3 successfully inserted.
|
// 3 successfully inserted.
|
||||||
// 9 was already in the set.
|
// 9 was already in the set.
|
||||||
// There were 2 occurances of 4.
|
// There were 2 occurrences of 4.
|
||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@ -55,7 +55,7 @@ main(int, char*[])
|
|||||||
|
|
||||||
boost::tie(i,end) = std::equal_range(vals, vals + 6, 4);
|
boost::tie(i,end) = std::equal_range(vals, vals + 6, 4);
|
||||||
std::cout << "There were " << std::distance(i,end)
|
std::cout << "There were " << std::distance(i,end)
|
||||||
<< " occurances of " << *i << "." << std::endl;
|
<< " occurrences of " << *i << "." << std::endl;
|
||||||
// Footnote: of course one would normally just use std::count()
|
// Footnote: of course one would normally just use std::count()
|
||||||
// to get this information, but that would spoil the example :)
|
// to get this information, but that would spoil the example :)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user