Skip to content

Commit 8a6d44e

Browse files
committed
Propagate docx changes back through md
1 parent edf6121 commit 8a6d44e

File tree

20 files changed

+250
-340
lines changed

20 files changed

+250
-340
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
pub fn search<'a>(
2-
query: &str,
3-
contents: &'a str,
4-
) -> Vec<&'a str> {
1+
pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> {
52
unimplemented!();
63
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
pub fn search<'a>(
2-
query: &str,
3-
contents: &'a str,
4-
) -> Vec<&'a str> {
1+
pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> {
52
unimplemented!();
63
}

listings/ch12-an-io-project/listing-12-14/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ fn main() {
2525
}
2626

2727
// --snip--
28+
2829
// ANCHOR_END: here
2930

3031
struct Config {

listings/ch12-an-io-project/listing-12-15/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
pub fn search<'a>(
2-
query: &str,
3-
contents: &'a str,
4-
) -> Vec<&'a str> {
1+
pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> {
52
unimplemented!();
63
}
74

85
// ANCHOR: here
6+
// --snip--
7+
98
#[cfg(test)]
109
mod tests {
1110
use super::*;

listings/ch12-an-io-project/listing-12-16/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ failures:
1010

1111
---- tests::one_result stdout ----
1212

13-
thread 'tests::one_result' panicked at src/lib.rs:44:9:
13+
thread 'tests::one_result' panicked at src/lib.rs:17:9:
1414
assertion `left == right` failed
1515
left: ["safe, fast, productive."]
1616
right: []

listings/ch12-an-io-project/listing-12-16/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// ANCHOR: here
2-
pub fn search<'a>(
3-
query: &str,
4-
contents: &'a str,
5-
) -> Vec<&'a str> {
2+
pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> {
63
vec![]
74
}
85
// ANCHOR_END: here

listings/ch12-an-io-project/listing-12-17/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// ANCHOR: here
2-
pub fn search<'a>(
3-
query: &str,
4-
contents: &'a str,
5-
) -> Vec<&'a str> {
2+
pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> {
63
for line in contents.lines() {
74
// do something with line
85
}

listings/ch12-an-io-project/listing-12-18/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// ANCHOR: here
2-
pub fn search<'a>(
3-
query: &str,
4-
contents: &'a str,
5-
) -> Vec<&'a str> {
2+
pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> {
63
for line in contents.lines() {
74
if line.contains(query) {
85
// do something with line

listings/ch12-an-io-project/listing-12-19/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// ANCHOR: here
2-
pub fn search<'a>(
3-
query: &str,
4-
contents: &'a str,
5-
) -> Vec<&'a str> {
2+
pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> {
63
let mut results = Vec::new();
74

85
for line in contents.lines() {

listings/ch12-an-io-project/listing-12-20/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
pub fn search<'a>(
2-
query: &str,
3-
contents: &'a str,
4-
) -> Vec<&'a str> {
1+
pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> {
52
let mut results = Vec::new();
63

74
for line in contents.lines() {

0 commit comments

Comments
 (0)