diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-06-06 17:33:23 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-06-06 17:33:23 +0300 |
commit | de2f2bd938d4683253822b64d6fa0559970cc5fc (patch) | |
tree | 3fe5ee9ebbc7a4649991a54974d15392cb1ba0ea /src | |
parent | 3ba2dab7c9ba5d14422f21f4e38630597a56f803 (diff) | |
download | subplot-de2f2bd938d4683253822b64d6fa0559970cc5fc.tar.gz |
fix: typos and language for MdError
Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r-- | src/md.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -415,15 +415,15 @@ mod typeset { /// Errors returned from the module. #[derive(Debug, thiserror::Error, Eq, PartialEq)] pub enum MdError { - /// Trie to treat a non-PRE element as an embedded file. - #[error("{1}: tried to treat wrong element as an embedded file: {0}")] + /// Tried to treat a non-PRE element as an embedded file. + #[error("{1}: tried to treat wrong kind of element as an embedded file: {0}")] NotCodeBlockElement(String, Location), /// Code block lacks the "file" attribute. #[error("{0}; code block is not a file")] NotFile(Location), - /// Code block lacks an identifile to use as th filename. + /// Code block lacks an identifier to use as the filename. #[error("{0}: code block lacks a filename identifier")] NoId(Location), @@ -431,7 +431,7 @@ pub enum MdError { #[error("{0}: code block has an empty filename identifier")] NoIdValue(Location), - /// Value ofv add-newline attribute ie not understood. + /// Value of add-newline attribute is not understood. #[error("{1}: value of add-newline attribute is not understood: {0}")] BadAddNewline(String, Location), } |