mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Janitor: Fix spelling in comments
This commit is contained in:
parent
3e55b0e8f8
commit
39984b27db
9 changed files with 23 additions and 23 deletions
|
@ -181,7 +181,7 @@ public:
|
|||
cbindgen_private::sixtyfps_interpreter_struct_iterator_destructor(&inner);
|
||||
}
|
||||
}
|
||||
// FIXME i believe iterator are supposed to be copy constructible
|
||||
// FIXME I believe iterators are supposed to be copy constructible
|
||||
iterator(const iterator &) = delete;
|
||||
iterator &operator=(const iterator &) = delete;
|
||||
/// Move-constructs a new iterator from \a other.
|
||||
|
@ -244,7 +244,7 @@ private:
|
|||
/// Note that models are only represented in one direction: You can create a sixtyfps::Model<Value>
|
||||
/// in C++, store it in a std::shared_ptr and construct Value from it. Then you can set it on a
|
||||
/// property in your .60 code that was declared to be either an array (`property <[sometype]> foo;`)
|
||||
/// or an object literal (`property <{foo: string, bar: int}> myprop;`). Such properties are dynamic
|
||||
/// or an object literal (`property <{foo: string, bar: int}> my_prop;`). Such properties are dynamic
|
||||
/// and accept models implemented in C++.
|
||||
///
|
||||
/// ```
|
||||
|
|
|
@ -104,12 +104,12 @@ struct SharedVector
|
|||
/// Returns true if there are no elements on this vector; false otherwise.
|
||||
bool empty() const { return inner->size == 0; }
|
||||
|
||||
/// This indexing operator returns a reference to the \a index'th element of this vector.
|
||||
/// This indexing operator returns a reference to the \a `index`th element of this vector.
|
||||
T &operator[](std::size_t index) { return begin()[index]; }
|
||||
/// This indexing operator returns a const reference to the \a index'th element of this vector.
|
||||
/// This indexing operator returns a const reference to the \a `index`th element of this vector.
|
||||
const T &operator[](std::size_t index) const { return begin()[index]; }
|
||||
|
||||
/// Returns a reference to the \a index'th element of this vector.
|
||||
/// Returns a reference to the \a `index`th element of this vector.
|
||||
const T &at(std::size_t index) const { return begin()[index]; }
|
||||
|
||||
/// Appends the \a value as a new element to the end of this vector.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue