Apply suggestions from code review

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
This commit is contained in:
Olivier Goffart 2022-12-06 13:56:05 +01:00 committed by Olivier Goffart
parent 91dabcbddf
commit b2e22dc7cd
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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 {

View file

@ -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