From 49026a1346cbd1453e0e8c374fcedd3be7d6e3cb Mon Sep 17 00:00:00 2001 From: ines Date: Thu, 8 Jun 2017 19:15:50 +0200 Subject: [PATCH] Fix typos in example (see #1105) --- website/docs/usage/lightning-tour.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/usage/lightning-tour.jade b/website/docs/usage/lightning-tour.jade index 89dac830c..8afe16c2b 100644 --- a/website/docs/usage/lightning-tour.jade +++ b/website/docs/usage/lightning-tour.jade @@ -37,11 +37,11 @@ p assert doc[1].text == u'emoji' assert doc[-1].text == u'🍑' assert doc[17:19].text == u'outranking eggplant' - assert doc.noun_chunks[0].text == u'Peach emoji' + assert list(doc.noun_chunks)[0].text == u'Peach emoji' sentences = list(doc.sents) assert len(sentences) == 3 - assert sentences[0].text == u'Peach is the superior emoji.' + assert sentences[1].text == u'Peach is the superior emoji.' +infobox | #[strong API:] #[+api("doc") #[code Doc]], #[+api("token") #[code Token]]