Skip to content

Commit 5d898e4

Browse files
committed
Fix typo
1 parent 1286288 commit 5d898e4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

graphql_client_codegen/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pub fn generate_module_token_stream(
173173

174174
let operation_count = operations.len();
175175

176-
let mulutiple_operation = operation_count > 1;
176+
let multiple_operations = operation_count > 1;
177177

178178
let mut schema_and_operations = Vec::with_capacity(operation_count);
179179

@@ -184,7 +184,7 @@ pub fn generate_module_token_stream(
184184
&operation,
185185
response_derives.clone(),
186186
deprecation_strategy.clone(),
187-
mulutiple_operation,
187+
multiple_operations,
188188
)?;
189189
let operation_name = Ident::new(operation.name.as_str(), Span::call_site());
190190
schema_and_operations.push((schema_output, operation_name, operation.name.as_str()));
@@ -210,15 +210,15 @@ fn build_module_token_stream(
210210
) -> TokenStream {
211211
let mut schema_token_streams = vec![];
212212
let mut trait_token_streams = vec![];
213-
let mulutiple_operation = schema_and_operations.len() > 1;
213+
let multiple_operations = schema_and_operations.len() > 1;
214214
for (schema_output, operation_name, operation_name_literal) in schema_and_operations {
215215
let (schema_token_stream, trait_token_stream) = build_query_struct_token_stream(
216216
&module_name,
217217
struct_name.clone(),
218218
&schema_output,
219219
&operation_name,
220220
operation_name_literal,
221-
mulutiple_operation,
221+
multiple_operations,
222222
);
223223
schema_token_streams.push(schema_token_stream);
224224
trait_token_streams.push(trait_token_stream);
@@ -261,15 +261,15 @@ fn build_query_struct_token_stream(
261261
schema_output: &TokenStream,
262262
operation_name: &Ident,
263263
operation_name_literal: &str,
264-
mulutiple_operation: bool,
264+
multiple_operations: bool,
265265
) -> (TokenStream, TokenStream) {
266266
let struct_name = if struct_name.is_some() {
267267
struct_name.unwrap()
268268
} else {
269269
operation_name.clone()
270270
};
271271

272-
let (respons_data_struct_name, variables_struct_name) = if mulutiple_operation {
272+
let (respons_data_struct_name, variables_struct_name) = if multiple_operations {
273273
(
274274
Ident::new(
275275
format!("{}ResponseData", operation_name_literal).as_str(),

graphql_client_codegen/src/operations.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ impl Operation {
4343
&self,
4444
context: &QueryContext,
4545
operation_name: &str,
46-
mulutiple_operation: bool,
46+
multiple_operations: bool,
4747
) -> TokenStream {
4848
let variables = &self.variables;
49-
let variables_struct_name = if mulutiple_operation {
49+
let variables_struct_name = if multiple_operations {
5050
Ident::new(
5151
format!("{}Variables", operation_name).as_str(),
5252
Span::call_site(),

0 commit comments

Comments
 (0)