• @[email protected]
    link
    fedilink
    52 months ago

    The first line passes the argument by reference, ie, the object itself.

    The second line passes the object by value, ie, a copy.

    • lad
      link
      42 months ago

      Also in Rust that would be the opposite which is funny but confusing