From 534b59e7211034304008f26780e44391859c4e78 Mon Sep 17 00:00:00 2001 From: shadowninja55 <49539636+shadowninja55@users.noreply.github.com> Date: Fri, 11 Jun 2021 04:52:06 -0400 Subject: [PATCH] examples: rename "Chield" to "Child" in examples/database/orm.v (#10414) --- examples/database/orm.v | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/database/orm.v b/examples/database/orm.v index ae55f84828..a7db00c160 100644 --- a/examples/database/orm.v +++ b/examples/database/orm.v @@ -19,12 +19,12 @@ struct User { } struct Parent { - id int [primary; sql: serial] + id int [primary; sql: serial] name string - children []Chield [fkey: 'parent_id'] + children []Child [fkey: 'parent_id'] } -struct Chield { +struct Child { id int [primary; sql: serial] parent_id int name string @@ -49,10 +49,10 @@ fn sqlite3_array() { par := Parent{ name: 'test' children: [ - Chield{ + Child{ name: 'abc' }, - Chield{ + Child{ name: 'def' }, ] @@ -67,7 +67,7 @@ fn sqlite3_array() { } sql db { - drop table Chield + drop table Child drop table Parent } @@ -91,10 +91,10 @@ fn mysql_array() { par := Parent{ name: 'test' children: [ - Chield{ + Child{ name: 'abc' }, - Chield{ + Child{ name: 'def' }, ] @@ -111,7 +111,7 @@ fn mysql_array() { eprintln(parent) sql db { - drop table Chield + drop table Child drop table Parent } @@ -130,10 +130,10 @@ fn psql_array() { par := Parent{ name: 'test' children: [ - Chield{ + Child{ name: 'abc' }, - Chield{ + Child{ name: 'def' }, ] @@ -150,7 +150,7 @@ fn psql_array() { eprintln(parent) sql db { - drop table Chield + drop table Child drop table Parent }