5
5
//!
6
6
//! [graphql grammar]: http://facebook.github.io/graphql/October2016/#sec-Appendix-Grammar-Summary
7
7
//!
8
+ pub use crate :: common:: { Directive , Number , Text , Type , Value } ;
8
9
use crate :: position:: Pos ;
9
- pub use crate :: common:: { Directive , Number , Value , Text , Type } ;
10
10
11
11
/// Root of query data
12
12
#[ derive( Debug , Clone , PartialEq ) ]
@@ -17,9 +17,9 @@ pub struct Document<'a, T: Text<'a>> {
17
17
impl < ' a > Document < ' a , String > {
18
18
pub fn into_static ( self ) -> Document < ' static , String > {
19
19
// To support both reference and owned values in the AST,
20
- // all string data is represented with the ::common::Str<'a, T: Text<'a>>
20
+ // all string data is represented with the ::common::Str<'a, T: Text<'a>>
21
21
// wrapper type.
22
- // This type must carry the liftetime of the query string,
22
+ // This type must carry the lifetime of the query string,
23
23
// and is stored in a PhantomData value on the Str type.
24
24
// When using owned String types, the actual lifetime of
25
25
// the Ast nodes is 'static, since no references are kept,
0 commit comments