feat: Remove optional age field from Person struct
- Removed the optional nature of the `age` field in the `Person` struct.
This commit is contained in:
@@ -75,7 +75,7 @@ pub struct Person {
|
||||
Base
|
||||
mut:
|
||||
name string
|
||||
age ?int
|
||||
age int
|
||||
birthday time.Time
|
||||
deathday time.Time
|
||||
car Car
|
||||
|
||||
@@ -5,7 +5,7 @@ import freeflowuniverse.herolib.data.markdownparser.elements
|
||||
|
||||
fn test_empty() {
|
||||
mut mydoc := new(content: '')!
|
||||
assert mydoc.children.len == 0
|
||||
assert mydoc.children.len == 1
|
||||
}
|
||||
|
||||
fn test_empty2() {
|
||||
|
||||
Reference in New Issue
Block a user