Skip to content

Commit dc4cdf0

Browse files
author
Byeongjee Kang
authored
Fix deprecated comments (#635)
build_*_type methods return meta types directly. They don't return builders.
1 parent 892619a commit dc4cdf0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

juniper/src/executor/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ where
12091209
NullableMeta::new(of_type)
12101210
}
12111211

1212-
/// Create an object meta type builder
1212+
/// Create an object meta type
12131213
///
12141214
/// To prevent infinite recursion by enforcing ordering, this returns a
12151215
/// function that needs to be called with the list of fields on the object.
@@ -1242,7 +1242,7 @@ where
12421242
EnumMeta::new::<T>(Cow::Owned(name.to_string()), values)
12431243
}
12441244

1245-
/// Create an interface meta type builder,
1245+
/// Create an interface meta type,
12461246
/// by providing a type info object.
12471247
pub fn build_interface_type<T>(
12481248
&mut self,
@@ -1259,7 +1259,7 @@ where
12591259
InterfaceMeta::new(Cow::Owned(name.to_string()), &v)
12601260
}
12611261

1262-
/// Create a union meta type builder
1262+
/// Create a union meta type
12631263
pub fn build_union_type<T>(&mut self, info: &T::TypeInfo, types: &[Type<'r>]) -> UnionMeta<'r>
12641264
where
12651265
T: GraphQLType<S>,
@@ -1269,7 +1269,7 @@ where
12691269
UnionMeta::new(Cow::Owned(name.to_string()), types)
12701270
}
12711271

1272-
/// Create an input object meta type builder
1272+
/// Create an input object meta type
12731273
pub fn build_input_object_type<T>(
12741274
&mut self,
12751275
info: &T::TypeInfo,

0 commit comments

Comments
 (0)