git.diff_for_file example is inconsistent on danger.systems website
The method git.diff_for_file
expects 1 argument (as you can see here) but the documentation example calls it in a wrong way (see Reference page, Git section, "WARN WHEN SOMEBODY TRIES TO ADD NOKOGIRI TO THE PROJECT"), like accessing a key on a hash.
Just need to change it from []
to ()
.
It looks like that page is generated via a rake command, but I'm not sure why the doc is not updated with the correct value.