From 3d4c49796f55980ca7ef422c3f389c3257459b17 Mon Sep 17 00:00:00 2001 From: eiffel-org Date: Wed, 21 Sep 2016 15:24:14 +0000 Subject: [PATCH] Update wikipage Code Templates. (Signed-off-by:javier). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1618 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../eiffelstudio-editor/Code-Templates.wiki | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/documentation/trunk/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/Code-Templates.wiki b/documentation/trunk/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/Code-Templates.wiki index 28469291..6a69f280 100644 --- a/documentation/trunk/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/Code-Templates.wiki +++ b/documentation/trunk/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/Code-Templates.wiki @@ -34,19 +34,18 @@ class ARRAY_TEMPLATE [T -> COMPARABLE] inherit - TEMPLATE [ARRAY [T]] + TEMPLATE [ARRAY [T]] feature -- Templates slice_maximum (low, high: INTEGER): T - -- Get the maximum of an array, where the interval is defined by default by array.lower |..| - -- array.upper. + -- Get the maximum of an array, where the interval is defined by default by array.lower |..| array.upper. note tags: "Algorithm, Maximum, ARRAY" - default: "a.lower, a.upper" + default: "target.lower, target.upper" do across low |..| high as i loop - Result := Result.max (a [i.item]) + Result := Result.max (target [i.item]) end end end