Skip to content

Commit 6598d86

Browse files
committed
Fix typo 'behaviour'
1 parent 44d0647 commit 6598d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppcs/ppc0024-signature-named-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Each element provides a new lexical variable that is visible during the body of
4242

4343
The value of a named parameter is taken from the argument values passed by the caller, in a manner familiar to existing uses of hash assignment. The caller should pass an even-sized name-value pair list. The values corresponding to names of parameters will be assigned into the variables. The order in which the values are passed by the caller is not significant.
4444

45-
Since it is a relatively common pattern in callsites in existing code to rely on the semantics of assignment of name-value pair lists into hashes, the beahviour on encountering duplicate key names needs to be preserved. This is that duplicated key names do not raise an error or a warning, and simply accept the last value associated with that name. This allows callers to collect values from multiple sources with different orders of priority to override them; for example using a hash of values combined with individual elements:
45+
Since it is a relatively common pattern in callsites in existing code to rely on the semantics of assignment of name-value pair lists into hashes, the behaviour on encountering duplicate key names needs to be preserved. This is that duplicated key names do not raise an error or a warning, and simply accept the last value associated with that name. This allows callers to collect values from multiple sources with different orders of priority to override them; for example using a hash of values combined with individual elements:
4646

4747
```perl
4848
sub func ( :$abc, :$xyz, ... ) { ... }

0 commit comments

Comments
 (0)