File tree 4 files changed +8
-9
lines changed
4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -717,10 +717,10 @@ probe CFG_MD5 md5
717
717
probe CFG_MD5SUM md5sum
718
718
if [ -n " $CFG_MD5 " ]
719
719
then
720
- CFG_HASH_COMMAND=" $CFG_MD5 -q | head -c 8"
720
+ CFG_HASH_COMMAND=" $CFG_MD5 -q | cut -c 1- 8"
721
721
elif [ -n " $CFG_MD5SUM " ]
722
722
then
723
- CFG_HASH_COMMAND=" $CFG_MD5SUM | head -c 8"
723
+ CFG_HASH_COMMAND=" $CFG_MD5SUM | cut -c 1- 8"
724
724
else
725
725
err ' could not find one of: md5 md5sum'
726
726
fi
Original file line number Diff line number Diff line change @@ -476,9 +476,9 @@ which syntactic form it matches.
476
476
477
477
There are additional rules regarding the next token after a metavariable:
478
478
479
- * ` expr ` variables must be followed by one of: ` => , ; `
480
- * ` ty ` and ` path ` variables must be followed by one of: ` => , : = > as `
481
- * ` pat ` variables must be followed by one of: ` => , = `
479
+ * ` expr ` variables may only be followed by one of: ` => , ; `
480
+ * ` ty ` and ` path ` variables may only be followed by one of: ` => , : = > as `
481
+ * ` pat ` variables may only be followed by one of: ` => , = `
482
482
* Other variables may be followed by any token.
483
483
484
484
These rules provide some flexibility for Rust’s syntax to evolve without
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ let world = "world!".to_string();
123
123
let hello_world = hello + & world ;
124
124
```
125
125
126
- This is because ` &String ` can automatically coerece to a ` &str ` . This is a
126
+ This is because ` &String ` can automatically coerce to a ` &str ` . This is a
127
127
feature called ‘[ ` Deref ` coercions] [ dc ] ’.
128
128
129
129
[ dc ] : deref-coercions.html
Original file line number Diff line number Diff line change @@ -120,11 +120,10 @@ pub trait Unsize<T> {
120
120
/// ```
121
121
///
122
122
/// The `PointList` `struct` cannot implement `Copy`, because `Vec<T>` is not `Copy`. If we
123
- /// attempt to derive a `Copy` implementation, we'll get an error.
123
+ /// attempt to derive a `Copy` implementation, we'll get an error:
124
124
///
125
125
/// ```text
126
- /// error: the trait `Copy` may not be implemented for this type; field `points` does not implement
127
- /// `Copy`
126
+ /// the trait `Copy` may not be implemented for this type; field `points` does not implement `Copy`
128
127
/// ```
129
128
///
130
129
/// ## How can I implement `Copy`?
You can’t perform that action at this time.
0 commit comments