fn new(path: &Path, text: String) -> CreateFile {
        CreateFile {
            undo: true,
            path: path,
            text: text,
        }
    }
// Note that, as opposed to the original code, text parameter should be specified.
Note that, as opposed to the original code, text parameter should be specified.
Note that as opposed to the original code text parameter should be specified .
fn new(path: &Path, text: String) -> CreateFile {
        CreateFile {
            undo: true,
            path: path,
            text: text,
        }
    }
fn new ( path : & Path , text : String ) -> CreateFile { CreateFile { undo : true , path : path , text : text , } }
Note that, as opposed to the original code, text parameter should be specified.
Note that as opposed to the original code text parameter should be specified .
path
&Path
text
String