aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/new_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/new_engine.cpp')
-rw-r--r--doc/examples/new_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/new_engine.cpp b/doc/examples/new_engine.cpp
index 2f412a6b9..6c7bc340a 100644
--- a/doc/examples/new_engine.cpp
+++ b/doc/examples/new_engine.cpp
@@ -13,7 +13,7 @@ using namespace Botan;
class XOR_Cipher : public StreamCipher
{
public:
- void clear() throw() { mask.destroy(); mask_pos = 0; }
+ void clear() throw() { mask.clear(); mask_pos = 0; }
// what we want to call this cipher
std::string name() const { return "XOR"; }