Add more comments and examples.
This commit is contained in:
@@ -38,7 +38,7 @@ fn struct_with_float() -> Result<(), EvalAltResult> {
|
||||
self.x = new_x;
|
||||
}
|
||||
|
||||
fn new() -> TestStruct {
|
||||
fn new() -> Self {
|
||||
TestStruct { x: 1.0 }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user