diff options
| author | Wesley Wiser <wwiser@gmail.com> | 2015-07-10 08:19:21 -0400 |
|---|---|---|
| committer | Wesley Wiser <wwiser@gmail.com> | 2015-07-10 19:40:46 -0400 |
| commit | 93ddee6cee6816843035575ddf0bf0309021ebc5 (patch) | |
| tree | fcba0de278934ca2d48a6239ba059b0aaeba2b0f /src/libsyntax/parse | |
| parent | 29c0c956bf8ba9d6cdb1723d40685514bc9c17ef (diff) | |
| download | rust-93ddee6cee6816843035575ddf0bf0309021ebc5.tar.gz rust-93ddee6cee6816843035575ddf0bf0309021ebc5.zip | |
Change some instances of .connect() to .join()
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer/comments.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/lexer/comments.rs b/src/libsyntax/parse/lexer/comments.rs index 1577b50ad76..467345624c2 100644 --- a/src/libsyntax/parse/lexer/comments.rs +++ b/src/libsyntax/parse/lexer/comments.rs @@ -139,7 +139,7 @@ pub fn strip_doc_comment_decoration(comment: &str) -> String { let lines = vertical_trim(lines); let lines = horizontal_trim(lines); - return lines.connect("\n"); + return lines.join("\n"); } panic!("not a doc-comment: {}", comment); diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 81ae607fea2..d77b529a3bf 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -5215,7 +5215,7 @@ impl<'a> Parser<'a> { last_span, &format!("illegal ABI: expected one of [{}], \ found `{}`", - abi::all_names().connect(", "), + abi::all_names().join(", "), the_string)); Ok(None) } |
