Skip to content

can't get item in array at v0.14 #609

Closed
@rise0chen

Description

@rise0chen
Student:
  - Name: Tom
  - Name: Bob
println!("{}", cfg.get_string("Student[0].Name").unwrap())

error:

called `Result::unwrap()~on an “Err`value: configuration property "student[0].name" not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions