From 31d08888e4a8229ec2be10e3f059f3577c28f20e Mon Sep 17 00:00:00 2001 From: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com> Date: Sun, 24 May 2020 07:29:58 +0100 Subject: [PATCH] Make some comments clearer. (#665) --- juniper/src/types/scalars.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/juniper/src/types/scalars.rs b/juniper/src/types/scalars.rs index a9443df4..10d3d7f4 100644 --- a/juniper/src/types/scalars.rs +++ b/juniper/src/types/scalars.rs @@ -261,7 +261,7 @@ where } fn from_str<'a>(value: ScalarToken<'a>) -> ParseScalarResult<'a, S> { - // Bools are parsed on it's own. This should not hit this code path + // Bools are parsed separately - they shouldn't reach this code path Err(ParseError::UnexpectedToken(Token::Scalar(value))) } } @@ -338,7 +338,7 @@ impl EmptyMutation { } } -// This is safe due to never using `T`. +// This is safe because `T` is never used. unsafe impl Send for EmptyMutation {} impl GraphQLType for EmptyMutation