From e66f7aa1ba49fef4296d977b471a1def38c1df5c Mon Sep 17 00:00:00 2001 From: mutante Date: Mon, 25 Sep 2017 01:38:42 -0700 Subject: fix quoting style in validate_legacy example (#816) I used the example code from this README file but i got downvotes from CI / jenkins / puppet-lint because it doesn't conform to Puppet style guides to use double quotes here. It produces "double quoted string containing no variables" warnings. I wanted to fix the example locally but it was pointed out to me we should fix it upstream stdlib instead. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 223945c..ac4f997 100644 --- a/README.md +++ b/README.md @@ -2214,7 +2214,7 @@ Arguments: Example: ```puppet -validate_legacy("Optional[String]", "validate_re", "Value to be validated", ["."]) +validate_legacy('Optional[String]', 'validate_re', 'Value to be validated', ["."]) ``` This function supports updating modules from Puppet 3-style argument validation (using the stdlib `validate_*` functions) to Puppet 4 data types, without breaking functionality for those depending on Puppet 3-style validation. -- cgit v1.2.3