提交 5140f54d 编写于 作者: K kohsuke

correcting a typo in the doc

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11988 71c3de6d-444a-0410-be80-ed276b4c234a
上级 131f7d5b
......@@ -77,7 +77,7 @@ public class MarkupText extends AbstractMarkupText {
* <p>
* Start/end tag text can contain special tokens "$0", "$1", ...
* and they will be replaced by their {@link #group(int) group match}.
* "\\c" can be used to escape characters.
* "\$" can be used to escape characters.
*/
public void surroundWith(String startTag, String endTag) {
addMarkup(0,length(),replace(startTag),replace(endTag));
......@@ -136,7 +136,7 @@ public class MarkupText extends AbstractMarkupText {
/**
* Replaces the group tokens like "$0", "$1", and etc with their actual matches.
*/
private String replace(String s) {
public String replace(String s) {
StringBuffer buf = new StringBuffer();
for( int i=0; i<s.length(); i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册