Skip to content

Commit 70e67b4

Browse files
committed
fix deprecated message: lstrip and max have incorrect deprecated msg's
update deprecated messages to point to the correct built in function
1 parent 276e7b7 commit 70e67b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/puppet/parser/functions/lstrip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Puppet::Parser::Functions
1212
The stripped string
1313
1414
> **Note:** **Deprecated** from Puppet 6.0.0, this function has been replaced with a
15-
built-in [`max`](https://puppet.com/docs/puppet/latest/function.html#max) function.
15+
built-in [`lstrip`](https://puppet.com/docs/puppet/latest/function.html#lstrip) function.
1616
DOC
1717
) do |arguments|
1818
raise(Puppet::ParseError, "lstrip(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.empty?

lib/puppet/parser/functions/max.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module Puppet::Parser::Functions
1414
The highest value among those passed in
1515
1616
> **Note:** **Deprecated** from Puppet 6.0.0, this function has been replaced with a
17-
built-in [`lstrip`](https://puppet.com/docs/puppet/latest/function.html#lstrip) function.
17+
built-in [`max`](https://puppet.com/docs/puppet/latest/function.html#max) function.
1818
DOC
1919
) do |args|
2020
raise(Puppet::ParseError, 'max(): Wrong number of arguments need at least one') if args.empty?

0 commit comments

Comments
 (0)