Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Eliminate all Closure compiler warnings.
Browse files Browse the repository at this point in the history
Create diff class in JS that looks the same as an array-based tuple.
  • Loading branch information
NeilFraser committed Jun 18, 2018
1 parent 6ea48d6 commit cd60d24
Show file tree
Hide file tree
Showing 11 changed files with 133 additions and 91 deletions.
4 changes: 2 additions & 2 deletions cpp/diff_match_patch.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ bool Patch::isNull() const {




/** /**
* Emmulate GNU diff's format. * Emulate GNU diff's format.
* Header: @@ -382,8 +481,9 @@ * Header: @@ -382,8 +481,9 @@
* Indicies are printed as 1-based, not 0-based. * Indices are printed as 1-based, not 0-based.
* @return The GNU diff string * @return The GNU diff string
*/ */
QString Patch::toString() { QString Patch::toString() {
Expand Down
4 changes: 2 additions & 2 deletions csharp/DiffMatchPatch.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ public class Patch {
public int length2; public int length2;


/** /**
* Emmulate GNU diff's format. * Emulate GNU diff's format.
* Header: @@ -382,8 +481,9 @@ * Header: @@ -382,8 +481,9 @@
* Indicies are printed as 1-based, not 0-based. * Indices are printed as 1-based, not 0-based.
* @return The GNU diff string. * @return The GNU diff string.
*/ */
public override string ToString() { public override string ToString() {
Expand Down
4 changes: 2 additions & 2 deletions dart/PatchClass.dart
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class Patch {
} }


/** /**
* Emmulate GNU diff's format. * Emulate GNU diff's format.
* Header: @@ -382,8 +481,9 @@ * Header: @@ -382,8 +481,9 @@
* Indicies are printed as 1-based, not 0-based. * Indices are printed as 1-based, not 0-based.
* Returns the GNU diff string. * Returns the GNU diff string.
*/ */
String toString() { String toString() {
Expand Down
4 changes: 2 additions & 2 deletions java/src/name/fraser/neil/plaintext/diff_match_patch.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2405,9 +2405,9 @@ public Patch() {
} }


/** /**
* Emmulate GNU diff's format. * Emulate GNU diff's format.
* Header: @@ -382,8 +481,9 @@ * Header: @@ -382,8 +481,9 @@
* Indicies are printed as 1-based, not 0-based. * Indices are printed as 1-based, not 0-based.
* @return The GNU diff string. * @return The GNU diff string.
*/ */
public String toString() { public String toString() {
Expand Down
53 changes: 28 additions & 25 deletions javascript/diff_match_patch.js

Large diffs are not rendered by default.

Loading

0 comments on commit cd60d24

Please sign in to comment.