mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 20:49:41 +00:00
Merge pull request #289 from Rupesh-Darimisetti/patch-2
add editable to make changes in code
This commit is contained in:
@ -39,7 +39,7 @@ mod front_of_house {
|
|||||||
|
|
||||||
2. 🌟🌟 Let's call `add_to_waitlist` from a function `eat_at_restaurant` which within the library crate root.
|
2. 🌟🌟 Let's call `add_to_waitlist` from a function `eat_at_restaurant` which within the library crate root.
|
||||||
|
|
||||||
```rust
|
```rust,editable
|
||||||
// in lib.rs
|
// in lib.rs
|
||||||
|
|
||||||
// FILL in the blanks and FIX the errors
|
// FILL in the blanks and FIX the errors
|
||||||
@ -76,7 +76,7 @@ mod back_of_house {
|
|||||||
|
|
||||||
|
|
||||||
### Separating modules into different files
|
### Separating modules into different files
|
||||||
```rust
|
```rust,editable
|
||||||
// in lib.rs
|
// in lib.rs
|
||||||
pub mod front_of_house {
|
pub mod front_of_house {
|
||||||
pub mod hosting {
|
pub mod hosting {
|
||||||
|
Reference in New Issue
Block a user