ygimenez/Pagination-Utils

Issue with README.md

day-mon opened this issue · 1 comments

Something minor but

Example provided an extra parenthesis

ArrayList<Page> pages = new ArrayList<>();
MessageBuilder mb = new MessageBuilder();

//ADDING 10 PAGES TO THE LIST
for (int i = 0; i < 10; i++) {
    mb.clear();
    mb.setContent("This is entry Nº " + i);
    pages.add(new Page(PageType.TEXT), mb.build());
}

Should be corrected to

ArrayList<Page> pages = new ArrayList<>();
MessageBuilder mb = new MessageBuilder();

//ADDING 10 PAGES TO THE LIST
for (int i = 0; i < 10; i++) {
    mb.clear();
    mb.setContent("This is entry Nº " + i);
    pages.add(new Page(PageType.TEXT, mb.build());
}

Thanks for spotting that typo