Skip to content

Commit 5951e83

Browse files
authored
Merge pull request #1715 from wezm/errors
cairo: Fix some typos in Error Display impl
2 parents d74bf7f + a21ca2c commit 5951e83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cairo/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl fmt::Display for Error {
117117
Error::NullPointer => fmt.write_str("Null Pointer"),
118118
Error::InvalidString => fmt.write_str("Invalid String"),
119119
Error::InvalidPathData => fmt.write_str("Invalid Path Data"),
120-
Error::ReadError => fmt.write_str("Cairo : Read Error"),
120+
Error::ReadError => fmt.write_str("Read Error"),
121121
Error::WriteError => fmt.write_str("Write Error"),
122122
Error::SurfaceFinished => fmt.write_str("Surface Finished"),
123123
Error::SurfaceTypeMismatch => fmt.write_str("Surface Type Mismatch"),
@@ -127,7 +127,7 @@ impl fmt::Display for Error {
127127
Error::InvalidVisual => fmt.write_str("Invalid Visual"),
128128
Error::FileNotFound => fmt.write_str("File Not Found"),
129129
Error::InvalidDash => fmt.write_str("Invalid Dash"),
130-
Error::InvalidDscComment => fmt.write_str("Invalid Dash Comment"),
130+
Error::InvalidDscComment => fmt.write_str("Invalid DSC Comment"),
131131
Error::InvalidIndex => fmt.write_str("Invalid Index"),
132132
Error::ClipNotRepresentable => fmt.write_str("Clip Not Representable"),
133133
Error::TempFileError => fmt.write_str("Temp File Error"),

0 commit comments

Comments
 (0)