// BEGIN_CODE
struct MyClass {
	my_field: isize
}

impl MyClass {
	// constructor, by convention
	pub fn new(field: isize) -> MyClass {
		MyClass { my_field: field }
	}

	// destructor
	pub fn drop(&self) {
	}
}
// END_CODE

// BEGIN_CODE
struct MyClass {
	my_field: isize
}

impl MyClass {
	// constructor, by convention
	pub fn new(field: isize) -> MyClass {
		MyClass { my_field: field }
	}
}

impl Drop for MyClass {
	// destructor
	fn drop(&mut self) {
	}
}
// END_CODE

Fix destructor example for rust
Fix destructor example for rust

The old code was just a normal method named drop, not a destructor.