Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions listings/ch12-an-io-project/listing-12-22/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ fn main() {
}

// ANCHOR: here
pub struct Config {
pub query: String,
pub file_path: String,
pub ignore_case: bool,
struct Config {
query: String,
file_path: String,
ignore_case: bool,
}
// ANCHOR_END: here

Expand Down
8 changes: 4 additions & 4 deletions listings/ch12-an-io-project/listing-12-23/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ fn main() {
}
}

pub struct Config {
pub query: String,
pub file_path: String,
pub ignore_case: bool,
struct Config {
query: String,
file_path: String,
ignore_case: bool,
}

// ANCHOR: here
Expand Down
8 changes: 4 additions & 4 deletions listings/ch12-an-io-project/listing-12-24/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ fn main() {
}
// ANCHOR_END: here

pub struct Config {
pub query: String,
pub file_path: String,
pub ignore_case: bool,
struct Config {
query: String,
file_path: String,
ignore_case: bool,
}

impl Config {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ fn main() {
}
}

pub struct Config {
pub query: String,
pub file_path: String,
pub ignore_case: bool,
struct Config {
query: String,
file_path: String,
ignore_case: bool,
}

// ANCHOR: ch13
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ fn main() {
}
// ANCHOR_END: ch13

pub struct Config {
pub query: String,
pub file_path: String,
pub ignore_case: bool,
struct Config {
query: String,
file_path: String,
ignore_case: bool,
}

impl Config {
Expand Down
8 changes: 4 additions & 4 deletions listings/ch13-functional-features/listing-13-18/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ fn main() {
}
// ANCHOR_END: here

pub struct Config {
pub query: String,
pub file_path: String,
pub ignore_case: bool,
struct Config {
query: String,
file_path: String,
ignore_case: bool,
}

impl Config {
Expand Down
8 changes: 4 additions & 4 deletions listings/ch13-functional-features/listing-13-19/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ fn main() {
}
}

pub struct Config {
pub query: String,
pub file_path: String,
pub ignore_case: bool,
struct Config {
query: String,
file_path: String,
ignore_case: bool,
}

// ANCHOR: here
Expand Down
8 changes: 4 additions & 4 deletions listings/ch13-functional-features/listing-13-20/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ fn main() {
}
}

pub struct Config {
pub query: String,
pub file_path: String,
pub ignore_case: bool,
struct Config {
query: String,
file_path: String,
ignore_case: bool,
}

// ANCHOR: here
Expand Down
8 changes: 4 additions & 4 deletions nostarch/chapter12.md
Original file line number Diff line number Diff line change
Expand Up @@ -1454,10 +1454,10 @@ anywhere yet:
Filename: src/main.rs

```
pub struct Config {
pub query: String,
pub file_path: String,
pub ignore_case: bool,
struct Config {
query: String,
file_path: String,
ignore_case: bool,
}
```

Expand Down