www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Tour: unneeded import

reply mark <mark qtrac.eu> writes:
In the D tour example shown here
https://tour.dlang.org/tour/en/basics/ranges
there is the following import:
import std.range : drop, generate, take;
But generate is not used so I think it ought to be deleted to 
avoid confusion.
Jan 13 2020
parent reply drug <drug2004 bk.ru> writes:
On 1/13/20 2:45 PM, mark wrote:
 In the D tour example shown here
 https://tour.dlang.org/tour/en/basics/ranges
 there is the following import:
 import std.range : drop, generate, take;
 But generate is not used so I think it ought to be deleted to avoid 
 confusion.
 
done - https://github.com/dlang-tour/english/pull/303
Jan 13 2020
parent drug <drug2004 bk.ru> writes:
On 1/13/20 3:11 PM, drug wrote:
 On 1/13/20 2:45 PM, mark wrote:
 In the D tour example shown here
 https://tour.dlang.org/tour/en/basics/ranges
 there is the following import:
 import std.range : drop, generate, take;
 But generate is not used so I think it ought to be deleted to avoid 
 confusion.
done - https://github.com/dlang-tour/english/pull/303
You can easily do it yourself. https://github.com/dlang-tour/core/tree/master/public/content Here you select `en` Then go to `basics/ranges.md` Switch to master branch using combobox in top left corner Then press the pen icon next to Raw, Blame, History buttons. Edit text as needed In bottom add comment for commit and commit Then create pull request Profit!
Jan 13 2020