mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Apply suggestions from code review
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
This commit is contained in:
parent
91dabcbddf
commit
b2e22dc7cd
3 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ All notable changes to this project are documented in this file.
|
|||
|
||||
### Added
|
||||
|
||||
- Added functions in the language
|
||||
- Added support for declaring functions in the language.
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
|
@ -430,7 +430,7 @@ Example := Rectangle {
|
|||
## Functions
|
||||
|
||||
You can declare helper functions with the function keyword.
|
||||
Functions are private by default, but can be annotated with public.
|
||||
Functions are private by default, but can be made public with the `public` annotation.
|
||||
|
||||
```slint,no-preview
|
||||
Example := Rectangle {
|
||||
|
|
|
@ -349,7 +349,7 @@ pub enum Expression {
|
|||
/// Reference to the property
|
||||
PropertyReference(NamedReference),
|
||||
|
||||
/// Reference to a Function
|
||||
/// Reference to a function
|
||||
FunctionReference(NamedReference),
|
||||
|
||||
/// Reference to a function built into the run-time, implemented natively
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue