Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doc aliases for python and Java collections #81989

Closed
wants to merge 1 commit into from

Commits on Mar 2, 2021

  1. Add aliases for python and Java collections

    `append` sounds strange because Rust already has append and it does
    something different. The reason I added it is one of my friends knew
    from python that it added a single element to the end of an array. When
    they started learning Rust, rather than looking for pop(), they wrote
    something like
    
    ```rust
    my_vec.append(&mut vec![x]);
    ```
    
    which is clearly not ideal. Hopefully this would have pointed them in
    the right direction.
    jyn514 committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    a8c8025 View commit details
    Browse the repository at this point in the history