Skip to content
  • Yorick Peterse's avatar
    bb9d6d99
    Use "let mut" for mutable arguments · bb9d6d99
    Yorick Peterse authored
    Using "var" is a bit confusing because one might read it as "variable"
    opposed to something along the lines of "mutable variable". Using "let
    mut" makes it more clear that we're defining a mutable variable, it also
    ensures both definitions always start with the same keyword.
    bb9d6d99
    Use "let mut" for mutable arguments
    Yorick Peterse authored
    Using "var" is a bit confusing because one might read it as "variable"
    opposed to something along the lines of "mutable variable". Using "let
    mut" makes it more clear that we're defining a mutable variable, it also
    ensures both definitions always start with the same keyword.
Loading