Project

General

Profile

Actions

Bug #12496

closed

[DOC] Suggestion to clear usage of String.intern

Added by southwolf (Fei Song) almost 8 years ago. Updated almost 8 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
[ruby-core:76051]

Description

The usage notes of String#intern
http://ruby-doc.org/core-2.3.1/String.html#method-i-intern

is exactly a copy of String.to_sym

http://ruby-doc.org/core-2.3.1/String.html#method-i-to_sym

which might cause confusion.

Which is a better solution, tell users they are almost same, or explain each method individually?

Actions

Also available in: Atom PDF

Like0
Like0