raster pushed a commit to branch master.

http://git.enlightenment.org/website/www-content.git/commit/?id=2ba8ec6cc1865ff591d1686dde03e2994e69dfad

commit 2ba8ec6cc1865ff591d1686dde03e2994e69dfad
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri May 15 16:26:41 2020 +0100

    hello tut - get args correct
---
 pages/develop/tutorials/c/hello-world.md.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pages/develop/tutorials/c/hello-world.md.txt 
b/pages/develop/tutorials/c/hello-world.md.txt
index 48f4fdc08..90a122fa3 100644
--- a/pages/develop/tutorials/c/hello-world.md.txt
+++ b/pages/develop/tutorials/c/hello-world.md.txt
@@ -124,13 +124,13 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
 {
    Efl_Loop_Arguments *args = ev->info;
 
-   if (eina_array_count(args->argv) == 0)
+   if (eina_array_count(args->argv) <= 1)
      {
         printf("Hello World!\n");
      }
    else
      {
-        printf("Hello %s!\n", (char *) eina_array_data_get(args->argv, 0));
+        printf("Hello %s!\n", (char *) eina_array_data_get(args->argv, 1));
      }
 
    efl_exit(0);

-- 


Reply via email to