Skip to content

Commit ed98e30

Browse files
committed
Merge rust-bitcoin#5058: docs: fix syntax errors and grammar in policy.md
6def722 docs: fix syntax errors and grammar in policy.md (Klaklax) Pull request description: ### Description Correct missing `fn` keyword in function declaration example. Remove redundant `do` word from sentence describing type ordering constraints. ACKs for top commit: apoelstra: ACK 6def722; successfully ran local tests Tree-SHA512: 9373db48c37d4b0d89b1cb10d772d84af68994b80495fe6b705d341a974152f85365ea4aee58f87993636f6258364e168b447997f2863c026eebc178e0552357
2 parents 0051d4d + 6def722 commit ed98e30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub mod foo {
9393
pub struct FooBar { ... };
9494

9595
/// Some function.
96-
pub some_function() -> SomeError {
96+
pub fn some_function() -> SomeError {
9797
// Example error logic
9898
SomeError::Foo(FooError { ... })
9999
}
@@ -331,7 +331,7 @@ enum Foo {
331331
}
332332
```
333333

334-
For types that do should not form a total or partial order, or that technically do but it does not
334+
For types that should not form a total or partial order, or that technically do but it does not
335335
make sense to compare them, we use the `Ordered` trait from the
336336
[`ordered`](https://crates.io/crates/ordered) crate. See `absolute::LockTime` for an example.
337337

0 commit comments

Comments
 (0)