From: shevegen@... Date: 2018-02-05T18:37:00+00:00 Subject: [ruby-core:85413] [Ruby trunk Misc#14450] Enchance MatchData docs Issue #14450 has been updated by shevegen (Robert A. Heiler). Actually your wording seems a bit more complicated than the original one to me. Or perhaps I got used to the succinct japanese-english style already. :D The content "It encapsulates all the results of a pattern match, results normally accessed through the special variables $&, $', $`, $1, $2, and so on." seems to be gone or reworded and moved below (but mostly appears to be gone; aside from the new overview at the bottom). I agree with the examples listed though including the section "Global variables equivalence". (I guess that was one way for you to re-group the documentation, and I agree with that part of the patch - it seems more logical.) So the only part is the intro - perhaps the intro could still include a reference to the old "results normally accessed through the special variable" part? With the overview appearing lateron. At any rate, this is just an opinion, feel free to ignore it - improving ruby's documentation is always good and should in general be encouraged, so consider my comment here more as an attempt of encouragement than anything else, please. ---------------------------------------- Misc #14450: Enchance MatchData docs https://bugs.ruby-lang.org/issues/14450#change-70198 * Author: zverok (Victor Shepelev) * Status: Open * Priority: Normal * Assignee: ---------------------------------------- The wording is changed from stating something like "This is (unimporant) helper, which is a wrapper for (primary) global variables" more to the "This is (primary) regexp matching result, which also (eventually) related to global variables". Explanations expanded and several code examples added to the class description. ---Files-------------------------------- match-data-docs.patch (2.77 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: