Skip to content

Commit 31d0888

Browse files
Make some comments clearer. (#665)
1 parent 2cb96d0 commit 31d0888

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

juniper/src/types/scalars.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ where
261261
}
262262

263263
fn from_str<'a>(value: ScalarToken<'a>) -> ParseScalarResult<'a, S> {
264-
// Bools are parsed on it's own. This should not hit this code path
264+
// Bools are parsed separately - they shouldn't reach this code path
265265
Err(ParseError::UnexpectedToken(Token::Scalar(value)))
266266
}
267267
}
@@ -338,7 +338,7 @@ impl<T> EmptyMutation<T> {
338338
}
339339
}
340340

341-
// This is safe due to never using `T`.
341+
// This is safe because `T` is never used.
342342
unsafe impl<T> Send for EmptyMutation<T> {}
343343

344344
impl<S, T> GraphQLType<S> for EmptyMutation<T>

0 commit comments

Comments
 (0)