aboutsummaryrefslogtreecommitdiff
path: root/Examples/xml/example_title_add.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/xml/example_title_add.i')
-rw-r--r--Examples/xml/example_title_add.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/Examples/xml/example_title_add.i b/Examples/xml/example_title_add.i
index 33209191c..624cb5c8c 100644
--- a/Examples/xml/example_title_add.i
+++ b/Examples/xml/example_title_add.i
@@ -1,5 +1,5 @@
/* File : example.i */
-%title "Matrix and vector package"
+/* Matrix and vector package */
/* This file has a few "typical" uses of C++ references. */
@@ -32,7 +32,7 @@ public:
int size();
/* This wrapper provides an alternative to the [] operator */
- %addmethods {
+ %extend {
Vector &get(int index) {
return (*self)[index];
}