@@ -111,7 +111,7 @@ pub fn execute(_args: &ArgMatches) -> Result<()> {
111111 writeln ! ( summary, "# Summary" ) ?;
112112 writeln ! ( summary, "- [Index](./{INDEX_MD_FILE})" ) ?;
113113
114- for sb in & shelf_config. book {
114+ for sb in & shelf_config. books {
115115 if let Some ( url) = & sb. git_url {
116116 println ! ( "{:?}" , sb) ;
117117 let path = sb. path . clone ( ) . unwrap_or ( "root" . to_owned ( ) ) ;
@@ -206,16 +206,16 @@ path = "../test_book"
206206 let cfg: Shelf = toml:: from_str ( & toml) . unwrap ( ) ;
207207 assert_eq ! ( cfg. root_url_prefix. unwrap( ) , "myprefix" ) ;
208208
209- let book = & cfg. book [ 0 ] ;
209+ let book = & cfg. books [ 0 ] ;
210210 assert_eq ! ( book. git_url. clone( ) . unwrap( ) , "firsturl" ) ;
211211 assert_eq ! ( book. git_ref. clone( ) . unwrap( ) , "shelf" ) ;
212212 assert_eq ! ( book. path. clone( ) . unwrap( ) , "guide" ) ;
213213
214- let book = & cfg. book [ 1 ] ;
214+ let book = & cfg. books [ 1 ] ;
215215 assert_eq ! ( book. git_url. clone( ) . unwrap( ) , "secondurl" ) ;
216216 assert ! ( book. git_ref. is_none( ) ) ;
217217 assert ! ( book. path. is_none( ) ) ;
218218
219- let book = & cfg. book [ 2 ] ;
219+ let book = & cfg. books [ 2 ] ;
220220 assert_eq ! ( book. path. clone( ) . unwrap( ) , "../test_book" ) ;
221221}
0 commit comments