Commits

while0pass committed f5b76f5

Sweep up the typo mess for highlight[s]!

Comments (0)

Files changed (1)

docs/source/highlight.rst

 If you instantiate a custom fragmenter, you can set the character limit on it
 directly::
 
-    sf = highlights.SentenceFragmenter(charlimit=100000)
+    sf = highlight.SentenceFragmenter(charlimit=100000)
     results.fragmenter = sf
 
 See below for information on customizing the highlights.
 returned in each snippet::
 
     # Show a maximum of 5 fragments from the document
-    print hit.highlight("content", top=5)
+    print hit.highlights("content", top=5)
 
 
 Fragment size
     are highlighting a short bit of text and don't need to fragment it.
 
 The different fragmenters have different options. For example, the default
-:class:`~whoosh.highlights.ContextFragmenter` lets you set the maximum
+:class:`~whoosh.highlight.ContextFragmenter` lets you set the maximum
 fragment size and the size of the context to add on either side::
 
-    my_cf = highlights.ContextFragmenter(maxchars=100, surround=30)
+    my_cf = highlight.ContextFragmenter(maxchars=100, surround=30)
 
 See the :mod:`whoosh.highlight` docs for more information.