This is an automated email from the ASF dual-hosted git repository.

gerben pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f5667b  tweak doc
7f5667b is described below

commit 7f5667b2482f7e1a8530660fbec90e1229a5bbfd
Author: Gerben <[email protected]>
AuthorDate: Mon May 24 23:05:08 2021 +0200

    tweak doc
---
 packages/dom/src/range/match.ts | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/packages/dom/src/range/match.ts b/packages/dom/src/range/match.ts
index b733e06..061eb75 100644
--- a/packages/dom/src/range/match.ts
+++ b/packages/dom/src/range/match.ts
@@ -57,13 +57,15 @@ import { cartesian } from './cartesian';
  *   },
  *   endSelector: {
  *     type: 'TextQuoteSelector',
- *     // Because the end of a RangeSelector is *exclusive*, we’ll present the
- *     // latter part of the quote as the *prefix* so it will part of the 
match.
+ *     // Because the end of a RangeSelector is *exclusive*, we will present 
the
+ *     // latter part of the quote as the *prefix* so it will be part of the
+ *     // match.
  *     exact: '',
  *     prefix: ' amet,',
  *   }
- * }}
- * const createRangeSelectorMatcher = 
makeCreateRangeSelectorMatcher(createTextQuoteMatcher);
+ * };
+ * const createRangeSelectorMatcher =
+ *   makeCreateRangeSelectorMatcher(createTextQuoteMatcher);
  * const match = createRangeSelectorMatcher(selector)(document.body);
  * console.log(match)
  * // ⇒ Range { startContainer: #text, startOffset: 6, endContainer: #text,

Reply via email to