diff --git a/api/sixtyfps-cpp/include/sixtyfps_interpreter.h b/api/sixtyfps-cpp/include/sixtyfps_interpreter.h index beb69d233..abed107f8 100644 --- a/api/sixtyfps-cpp/include/sixtyfps_interpreter.h +++ b/api/sixtyfps-cpp/include/sixtyfps_interpreter.h @@ -29,6 +29,15 @@ namespace sixtyfps::interpreter { class Value; +/// This type represents a runtime instance of structure in `.60`. +/// +/// This can either be an instance of a name structure introduced +/// with the `struct` keyword in the .60 file, or an annonymous struct +/// writen with the `{ key: value, }` notation. +/// +/// It can be constructed with the range constructor or initializer lst, +/// and converted into or from a Value with the Value constructor and +/// Value::to_struct(). struct Struct { public: diff --git a/sixtyfps_runtime/interpreter/api.rs b/sixtyfps_runtime/interpreter/api.rs index 07faf75cf..b02227d96 100644 --- a/sixtyfps_runtime/interpreter/api.rs +++ b/sixtyfps_runtime/interpreter/api.rs @@ -272,10 +272,10 @@ impl TryInto for Value { } } -/// This type represent a runtime instance of structure in `.60`. +/// This type represents a runtime instance of structure in `.60`. /// /// This can either be an instance of a name structure introduced -/// with the `struct` keywrod in the .60 file, or an annonymous struct +/// with the `struct` keyword in the .60 file, or an annonymous struct /// writen with the `{ key: value, }` notation. /// /// It can be constructed with the [`FromIterator`] trait, and converted