summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaushik Lingarkar <quic_kaushikl@quicinc.com>2024-11-20 15:22:11 -0800
committerKaushik Lingarkar <quic_kaushikl@quicinc.com>2024-11-20 15:22:11 -0800
commitc824610abba794a1f8f13d6ff2ec1c09590ce697 (patch)
treeeb07b6ec6da2d98d1bc7bef649074ce61980b0ed
parent48f36f969542930722a9041b24bbb3c00dc919a1 (diff)
downloadjgit-c824610abba794a1f8f13d6ff2ec1c09590ce697.tar.gz
jgit-c824610abba794a1f8f13d6ff2ec1c09590ce697.zip
DiffDriver: fix doc for rust built-in
Change-Id: Ic430686dc41ecbd8d8d19068416bc18ba2d94f3f
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffDriver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffDriver.java b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffDriver.java
index 9873980ff1..b74444400e 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffDriver.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffDriver.java
@@ -64,7 +64,7 @@ public enum DiffDriver {
python(List.of("^[ \\t]*((class|(async[ \\t]+)?def)[ \\t].*)$")),
/**
* Built-in diff driver for
- * <a href="https://doc.rust-lang.org/reference/introduction.html">java</a>
+ * <a href="https://doc.rust-lang.org/reference/introduction.html">rust</a>
*/
rust(List.of("^[\\t ]*((pub(\\([^\\)]+\\))?[\\t ]+)?"
+ "((async|const|unsafe|extern([\\t ]+\"[^\"]+\"))[\\t ]+)?"