Skip to content

Commit 1b49a39

Browse files
committed
types: clean up some error messages
There were accidental newlines in some error messages.
1 parent cab7762 commit 1b49a39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/miniscript/types/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,19 @@ impl fmt::Display for Error {
8787
),
8888
ErrorKind::SwapNonOne => write!(
8989
f,
90-
"fragment «{}» attempts to use `SWAP` to prefix something
90+
"fragment «{}» attempts to use `SWAP` to prefix something \
9191
which does not take exactly one input",
9292
self.fragment_string,
9393
),
9494
ErrorKind::NonZeroZero => write!(
9595
f,
96-
"fragment «{}» attempts to use use the `j:` wrapper around a
96+
"fragment «{}» attempts to use use the `j:` wrapper around a \
9797
fragment which might be satisfied by an input of size zero",
9898
self.fragment_string,
9999
),
100100
ErrorKind::LeftNotUnit => write!(
101101
f,
102-
"fragment «{}» requires its left child be a unit (outputs
102+
"fragment «{}» requires its left child be a unit (outputs \
103103
exactly 1 given a satisfying input)",
104104
self.fragment_string,
105105
),

0 commit comments

Comments
 (0)