Skip to content

Commit 5b3c996

Browse files
authored
Fix function name that camel to snake (#332)
1 parent 22c8eaa commit 5b3c996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

juniper/src/schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub struct MutationRoot;
4545

4646
#[juniper::object]
4747
impl MutationRoot {
48-
fn createHuman(new_human: NewHuman) -> FieldResult<Human> {
48+
fn create_human(new_human: NewHuman) -> FieldResult<Human> {
4949
Ok(Human {
5050
id: "1234".to_owned(),
5151
name: new_human.name,

0 commit comments

Comments
 (0)