Project

General

Profile

Actions

Misc #16802

closed

Prefer use of RHS assigment in documentation

Added by ioquatix (Samuel Williams) about 4 years ago. Updated almost 4 years ago.


Description

Many documentation uses some format like this:

  Hash.new            -> hash

Now that RHS assignment is a thing, we can make the documentation valid Ruby code:

  Hash.new            => hash

There is some discussion here: https://github.com/ruby/ruby/pull/3026

I would like to start changing the existing documentation to use this, and in addition, make an automated sweep of the entire code base to update to the new syntax.


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #15921: R-assign (rightward-assignment) operatorClosedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0