Use correct grammar for error message.

When the number of parameters is 1, then 'parameter' should remain singular.
Otherwise pluralize it.
auto merge of #6026 : isanbard/rust/ca73fbf72615575f106ee18160580711aca89d85, r=catamorphism

When the number of parameters is 1, then 'parameter' should remain singular.
Otherwise pluralize it.