From 298dd21ec8a0a1328eb0d9830fb3a8248363ddb8 Mon Sep 17 00:00:00 2001 From: Yakir Buskilla Date: Wed, 20 Jul 2016 10:46:43 +0300 Subject: [PATCH] fixed ArrayOutOfBoundsException in java example --- docs/source/Tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/Tutorial.md b/docs/source/Tutorial.md index 6f6ac9a51..0157985a2 100644 --- a/docs/source/Tutorial.md +++ b/docs/source/Tutorial.md @@ -727,8 +727,8 @@ offsets. // Place the two weapons into an array, and pass it to the `createWeaponsVector()` method to // create a FlatBuffer vector. int[] weaps = new int[2]; - weaps[1] = sword; - weaps[2] = axe; + weaps[0] = sword; + weaps[1] = axe; // Pass the `weaps` array into the `createWeaponsVector()` method to create a FlatBuffer vector. int weapons = Monster.createWeaponsVector(builder, weaps);