KartikMistry has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/179441

Change subject: Typo: retun -> return
......................................................................

Typo: retun -> return

Change-Id: I091a9584d2a735b167fe95bdfa3a876ee9bc1417
---
M mt/MTClient.js
M mt/annotationmapper/SubsequenceMatcher.js
2 files changed, 13 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/cxserver 
refs/changes/41/179441/1

diff --git a/mt/MTClient.js b/mt/MTClient.js
index d6d5225..3453f29 100644
--- a/mt/MTClient.js
+++ b/mt/MTClient.js
@@ -247,14 +247,14 @@
 /**
  * Calculate range mappings based on the target text variants.
  *
- * @param {string} targetLang The target language
- * @param {Object[]} subSequences The start and length of each subsequence
- * @param {string} targetText The translated text
- * @param {Object} targetLines Translation of each subsequences
- * @retun {Object[]} The location of source and translation sequences in the 
text.
- * @return[i].source.start {number} Start position of source subSequence in 
the text
+ * @param {string} targetLang The target language.
+ * @param {Object[]} subSequences The start and length of each subsequence.
+ * @param {string} targetText The translated text.
+ * @param {Object} targetLines Translation of each subsequences.
+ * @return {Object[]} The location of source and translation sequences in the 
text.
+ * @return[i].source.start {number} Start position of source subSequence in 
the text.
  * @return[i].source.length {number} Length of source subSequence in the text.
- * @return[i].target.start {number} Start position of sequence in the text
+ * @return[i].target.start {number} Start position of sequence in the text.
  * @return[i].target.length {number} Length of matched sequence in the text.
  */
 MTClient.prototype.getSequenceMappings = function ( targetLang, subSequences, 
targetText, targetLines ) {
@@ -301,14 +301,14 @@
  * Locate the given sequence in the translated text.
  * Example:
  *   Searching  'tropical' in 'They are subtropical and tropical flowers.', 
'tropical',
- *   retruns { start: 12, length: 8 }
+ *   returns { start: 12, length: 8 }
  *
  * @param {string} text The translated text.
  * @param {string} sequence The search string.
  * @param {string} language Language of the text. Used for language specific 
matching.
  * @param {number} occurance Pass 1 for first occurance, 2 for second 
occurance, so on.
- * @retun {Object} The location of the sequence in the text.
- * @return.start {number} Start position of sequence in the text
+ * @return {Object} The location of the sequence in the text.
+ * @return.start {number} Start position of sequence in the text.
  * @return.length {number} Length of matched sequence in the text.
  */
 MTClient.prototype.findSubSequence = function ( text, sequence, language, 
occurance ) {
diff --git a/mt/annotationmapper/SubsequenceMatcher.js 
b/mt/annotationmapper/SubsequenceMatcher.js
index e88878a..3af238f 100644
--- a/mt/annotationmapper/SubsequenceMatcher.js
+++ b/mt/annotationmapper/SubsequenceMatcher.js
@@ -50,7 +50,7 @@
  * Approximately compare two strings
  * @param {string} string1
  * @param {string} string2
- * @retun {boolean}
+ * @return {boolean}
  */
 SubSequenceMatcher.prototype.isApproximateEqual = function ( string1, string2 
) {
        var distance = levenshteinDistance( string1, string2 );
@@ -141,8 +141,8 @@
 
 /**
  * Find the best match among candidate positions by longest match.
- * @param {Object[]} positions
- * @retun {Object} best match position.
+ * @param {Object[]} positions.
+ * @return {Object} best match position.
  */
 SubSequenceMatcher.prototype.bestMatch = function ( positions ) {
        positions.sort( comparePositions );

-- 
To view, visit https://gerrit.wikimedia.org/r/179441
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I091a9584d2a735b167fe95bdfa3a876ee9bc1417
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/cxserver
Gerrit-Branch: master
Gerrit-Owner: KartikMistry <kartik.mis...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to