This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch tutorial-fix
in repository www-content.
View the commit online.
commit a365ee14a8d1f488b8a9078d90841fb985b068fc
Author: tangcl <tan...@88.com>
AuthorDate: Sun Jan 21 22:47:44 2024 +0800
fix some typos
---
pages/develop/tutorials/c/hello-world-gui.md.txt | 2 +-
pages/develop/tutorials/c/hello-world.md.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pages/develop/tutorials/c/hello-world-gui.md.txt b/pages/develop/tutorials/c/hello-world-gui.md.txt
index fa00a78c5..2598e2663 100644
--- a/pages/develop/tutorials/c/hello-world-gui.md.txt
+++ b/pages/develop/tutorials/c/hello-world-gui.md.txt
@@ -107,7 +107,7 @@ So far ``_gui_setup`` is empty. Create a window by adding the following lines wi
As far as EFL is concerned, a window is just another object. You can declare it with ``Eo *win;``. The ``Eo`` type is the base object system for EFL. Most graphical elements such as windows, text boxes, buttons, sliders, etc. are ``Eo`` objects. You can give your window any name you wish but for now call it ``win``for simplicity's sake.
-The next part of the code defines the window itself. The ``efl_add()`` method creates a new object of the class specified in the first parameter and puts it inside the already existing object specified in the second parameter. In an EFL graphical application widgets are inserted inside other objects. For example, you can place a text object inside a text box inside a window and so on. In this case we want to create a window (``EFL_UI_WIN _CLASS``) which must be a child of the application [...]
+The next part of the code defines the window itself. The ``efl_add()`` method creates a new object of the class specified in the first parameter and puts it inside the already existing object specified in the second parameter. In an EFL graphical application widgets are inserted inside other objects. For example, you can place a text object inside a text box inside a window and so on. In this case we want to create a window (``EFL_UI_WIN_CLASS``) which must be a child of the application' [...]
The rest of the parameters of ``efl_add()`` are a list of methods that will be called in order, normally to configure the object we have just created. You can add as many configuration methods as you want in this list and can use the special symbol ``efl_added`` to refer to the created object if you need to.
diff --git a/pages/develop/tutorials/c/hello-world.md.txt b/pages/develop/tutorials/c/hello-world.md.txt
index 90a122fa3..d09ca97e5 100644
--- a/pages/develop/tutorials/c/hello-world.md.txt
+++ b/pages/develop/tutorials/c/hello-world.md.txt
@@ -149,7 +149,7 @@ The ``Efl_Event`` structure contains an array with all the command line paramete
Finally, the array can be found in ``args->argv``. Arrays in EFL are handled with the ``Eina_Array`` type, so you can use ``eina_array_count()`` to retrieve the number of elements in an array and ``eina_array_data_get()`` to access the contents of the array.
-In the above example, if no parameters are passed to your program (``eina_array_count(args->argv) == 0``), it just prints "Hello World!". Otherwise, the first parameter is retrieved and printed. Try compiling again your program and running it with your name as the first parameter:
+In the above example, if no parameters are passed to your program (``eina_array_count(args->argv) == 1``), it just prints "Hello World!". Otherwise, the first parameter is retrieved and printed. Try compiling again your program and running it with your name as the first parameter:
```bash
./hello-world Mike
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.