From 9e17277ead688ba6276612d04a48c5c28816aed9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 16 Sep 2020 23:58:00 +0200 Subject: [PATCH] Update declaration.mdr --- docs/Overview/declaration.mdr | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/Overview/declaration.mdr b/docs/Overview/declaration.mdr index d4666ce1..db9df039 100644 --- a/docs/Overview/declaration.mdr +++ b/docs/Overview/declaration.mdr @@ -13,11 +13,10 @@ Object o; ## Declaring a reference @``` decl1.gw -Object ref ref; -<<< "Reference points to no object yet: ", ref >>>; -#!Object o @=> ref; -new Object @=> ref; -<<< "But now it does: ", ref >>>; +Object ref object_ref; +<<< "Reference points to no object yet: ", object_ref >>>; +new Object @=> object_ref; +<<< "But now it does: ", object_ref >>>; @``` @hide make -s decl1.test @@ -26,9 +25,9 @@ new Object @=> ref; ### array as refs @``` decl2.gw -int ref[]; -<<< ref >>>; -new int[2] @=> ref; -<<< ref >>>; +int array_ref[]; +<<< array_ref >>>; +new int[2] @=> array_ref; +<<< array_ref >>>; @``` @hide make -s decl2.test -- 2.43.0