From a7cd3736b577bcd8d5815a83d61bcb84710d6ed2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 2 Apr 2020 01:18:11 +0200 Subject: [PATCH] :art: UPdate gwion syntax (@ becomes ref) --- docs/Overview/declaration.mdr | 2 +- docs/Reference/ControlFlow/forloop.mdr | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Overview/declaration.mdr b/docs/Overview/declaration.mdr index c3cd7f82..9715be83 100644 --- a/docs/Overview/declaration.mdr +++ b/docs/Overview/declaration.mdr @@ -13,7 +13,7 @@ Object o; ## Declaring a reference @``` decl1.gw -Object @ref; +Object ref ref; <<< "Reference points to no object yet: ", ref >>>; #!Object o @=> ref; new Object @=> ref; diff --git a/docs/Reference/ControlFlow/forloop.mdr b/docs/Reference/ControlFlow/forloop.mdr index 0337296c..c9dafd35 100644 --- a/docs/Reference/ControlFlow/forloop.mdr +++ b/docs/Reference/ControlFlow/forloop.mdr @@ -51,11 +51,11 @@ If you want to change it the value in the array, you need a pointer int array[2][3]; int i; for(auto a: array) { - for(auto @b: a) + for(auto ref b: a) <<< ++i => *b >>>; } for(auto a: array) { - for(auto @b: a) + for(auto ref b: a) <<< *b >>>; } @``` -- 2.43.0