-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-collectionsArea: `std::collections`Area: `std::collections`
Description
Please consider renaming string::push_str() to string::concat(). Push_X() in the context of a collection means X will be added to the container as a single entity. Hence push_str() is meaningless for strings since a string can only contain characters (char != [char]).
If it is too late to rename then consider adding a method called concat() anyway.
Also consider renaming Vec::push_all() to Vec::concat() so that the name is consistent with String::concat().
Metadata
Metadata
Assignees
Labels
A-collectionsArea: `std::collections`Area: `std::collections`