Skip to content

Commit 5627356

Browse files
committed
Work around ruby 1.8.7 differences
1 parent b792230 commit 5627356

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rdoc/parser/c.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def deduplicate_method_name class_obj, method_name
233233
method = class_obj.method_list.find { |m| m.name == method_name }
234234
return unless call_seq = method.call_seq
235235

236-
method_name = method_name[0] unless method_name =~ /\A\w/
236+
method_name = method_name[0, 1] unless method_name =~ /\A\w/
237237

238238
entries = call_seq.split "\n"
239239

test/test_rdoc_text.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def test_snippet
269269

270270
expected = <<-EXPECTED
271271
<p>This is one-hundred characters or more of text in a single paragraph. This
272-
paragraph will be cut off \u2026
272+
paragraph will be cut off
273273
EXPECTED
274274

275275
assert_equal expected, snippet(text)

0 commit comments

Comments
 (0)