From cb418c7aef475607088b80d5acf083198b5ee2d4 Mon Sep 17 00:00:00 2001 From: Yuval Pinter Date: Tue, 23 May 2017 10:54:13 -0400 Subject: [PATCH] Fixed span example error Span as written gives empty text. --- website/docs/api/doc.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api/doc.jade b/website/docs/api/doc.jade index 72fe34f8c..adcd111a3 100644 --- a/website/docs/api/doc.jade +++ b/website/docs/api/doc.jade @@ -103,7 +103,7 @@ p Get a #[code Token] object. doc = nlp(u'Give it back! He pleaded.') assert doc[0].text == 'Give' assert doc[-1].text == '.' - span = doc[1:1] + span = doc[1:3] assert span.text == 'it back' +table(["Name", "Type", "Description"])