@@ -86,11 +86,6 @@ impl DiskImageBuilder {
8686 }
8787
8888 /// Add a file source to the disk image
89- /// Example:
90- /// ```
91- /// image_builder.set_file_source("/extra/README.md", FileDataSource::File(file_path.to_path_buf()))
92- /// .set_file_source("/config/config.json", FileDataSource::Data(serialzed_configuration.to_vec()));
93- /// ```
9489 pub fn set_file_source ( & mut self , destination : & str , source : FileDataSource ) -> & mut Self {
9590 let destination = destination. to_string ( ) ;
9691 self . files . insert (
@@ -105,18 +100,12 @@ impl DiskImageBuilder {
105100
106101 /// Add a file with the specified bytes to the disk image
107102 /// NOTE: This is just a convenience wrapper around set_file_source
108- /// ```
109- /// image_builder.set_file_source(destination, FileDataSource::Data(data.to_vec()))
110- /// ```
111103 pub fn set_file_contents ( & mut self , destination : & str , data : & [ u8 ] ) -> & mut Self {
112104 self . set_file_source ( destination, FileDataSource :: Data ( data. to_vec ( ) ) )
113105 }
114106
115107 /// Add a file with the specified source file to the disk image
116108 /// NOTE: This is just a convenience wrapper around set_file_source
117- /// ```
118- /// image_builder.set_file_source(destination, FileDataSource::File(file_path.to_path_buf()))
119- /// ```
120109 pub fn set_file ( & mut self , destination : & str , file_path : & Path ) -> & mut Self {
121110 self . set_file_source ( destination, FileDataSource :: File ( file_path. to_path_buf ( ) ) )
122111 }
0 commit comments