From 92852ddd9e5350e26fdd25cb0489cd0bfb9296cc Mon Sep 17 00:00:00 2001 From: Gene Hightower Date: Fri, 21 Oct 2022 16:36:38 -0700 Subject: [PATCH] Fix spelling of include guard, fix grammar of error message. --- src/smtp-address-validator.hpp | 6 +++--- src/string-format-check.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/smtp-address-validator.hpp b/src/smtp-address-validator.hpp index 935166a..a529cb4 100644 --- a/src/smtp-address-validator.hpp +++ b/src/smtp-address-validator.hpp @@ -1,5 +1,5 @@ -#ifndef SMTP_ADDRESS_PARTSER_HPP_INCLUDED -#define SMTP_ADDRESS_PARTSER_HPP_INCLUDED +#ifndef SMTP_ADDRESS_PARSER_HPP_INCLUDED +#define SMTP_ADDRESS_PARSER_HPP_INCLUDED /* @@ -33,4 +33,4 @@ SOFTWARE. bool is_address(std::string_view s); -#endif // SMTP_ADDRESS_PARTSER_HPP_INCLUDED +#endif // SMTP_ADDRESS_PARSER_HPP_INCLUDED diff --git a/src/string-format-check.cpp b/src/string-format-check.cpp index e480e72..448ae45 100644 --- a/src/string-format-check.cpp +++ b/src/string-format-check.cpp @@ -215,7 +215,7 @@ void default_string_format_check(const std::string &format, const std::string &v rfc3339_time_check(value); } else if (format == "email") { if (!is_ascii(value)) { - throw std::invalid_argument(value + " is contains non-ASCII values, not RFC 5321 compliant."); + throw std::invalid_argument(value + " contains non-ASCII values, not RFC 5321 compliant."); } if (!is_address(value)) { throw std::invalid_argument(value + " is not a valid email according to RFC 5321.");