From 3dcb3852d7193c7b2e06ebc72763641c80d44a1f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 18 Feb 2021 02:32:11 +0100 Subject: [PATCH] :art: Horse refactor phase 2 --- docs/Benchmarks.mdr | 2 ++ docs/Overview/declaration.mdr | 4 ++-- docs/Reference/ControlFlow/Repeat.mdr | 2 +- docs/Reference/Functions/Lambdas.mdr | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/Benchmarks.mdr b/docs/Benchmarks.mdr index 5478b9b8..4fca8ad1 100644 --- a/docs/Benchmarks.mdr +++ b/docs/Benchmarks.mdr @@ -4,6 +4,8 @@ ## test +Please note that times are in second (lower is better) +
diff --git a/docs/Overview/declaration.mdr b/docs/Overview/declaration.mdr index 5afac3e5..04b83560 100644 --- a/docs/Overview/declaration.mdr +++ b/docs/Overview/declaration.mdr @@ -15,7 +15,7 @@ var Object o; @``` decl1.gw late Object object_ref; <<< "Reference points to no object yet: ", object_ref >>>; -new Object @=> object_ref; +new Object => object_ref; <<< "But now it does: ", object_ref >>>; @``` @hide make -s decl1.test @@ -27,7 +27,7 @@ new Object @=> object_ref; @``` decl2.gw var int array_ref[]; <<< array_ref >>>; -new int[2] @=> array_ref; +new int[2] => array_ref; <<< array_ref >>>; @``` @hide make -s decl2.test diff --git a/docs/Reference/ControlFlow/Repeat.mdr b/docs/Reference/ControlFlow/Repeat.mdr index bde84acb..a15625a4 100644 --- a/docs/Reference/ControlFlow/Repeat.mdr +++ b/docs/Reference/ControlFlow/Repeat.mdr @@ -17,7 +17,7 @@ of course this also works with a block code. @``` repeat2.gw repeat(3) { - maybe ? "You" : "Me" @=> var string s; + maybe ? "You" : "Me" => var string s; <<< "Hello, ", s, "!" >>>; } @``` diff --git a/docs/Reference/Functions/Lambdas.mdr b/docs/Reference/Functions/Lambdas.mdr index 91e686c6..8c234bac 100644 --- a/docs/Reference/Functions/Lambdas.mdr +++ b/docs/Reference/Functions/Lambdas.mdr @@ -21,7 +21,7 @@ You can even use it to ### Passing to a function pointer @``` lambda_fptr0.gw funcdef void fptr_t(int); -\ i { <<< "passed '", i, "'" >>>; } @=> var fptr_t fptr; +\ i { <<< "passed '", i, "'" >>>; } => var fptr_t fptr; fptr(4); @``` @hide make -s CONTAINS="passed '4'" lambda_fptr0.test -- 2.43.0