Skip to content

Commit

Permalink
Fix typo in docs. Fixes #140
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Jun 13, 2018
1 parent 6150461 commit 344b280
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/advanced-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Example
foreach ($packedBoxes as $packedBox) {
$packedItems = $packedBox->getItems();
foreach ($packedItems as $packedItem) { // $packedItem->getItem() is your own item object
echo $packedItem->getItem->getDescription() . ' was packed at co-ordinate ' ;
echo $packedItem->getItem()->getDescription() . ' was packed at co-ordinate ' ;
echo '(' . $packedItem->getX() . ', ' . $packedItem->getY() . ', ' . $packedItem->getZ() . ') with ';
echo 'l' . $packedItem->getLength() . ', w' . $packedItem->getWidth() . ', d' . $packedItem->getDepth();
echo PHP_EOL;
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Packing a set of items into a given set of box types
echo "The items in this box are:" . PHP_EOL;
$packedItems = $packedBox->getItems();
foreach ($packedItems as $packedItem) { // $packedItem->getItem() is your own item object, in this case TestItem
echo $packedItem->getItem->getDescription() . PHP_EOL;
echo $packedItem->getItem()->getDescription() . PHP_EOL;
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/whatsnew.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ After
<?php
$packedItems = $packedBox->getItems();
foreach ($packedItems as $packedItem) { // $packedItem->getItem() is your own item object
echo $packedItem->getItem->getDescription() . PHP_EOL;
echo $packedItem->getItem()->getDescription() . PHP_EOL;
}
If you use ``BoxPacker\ConstrainedItem``, you'll need to make the same change there too.
Expand Down

0 comments on commit 344b280

Please sign in to comment.