diff --git a/docs/function-guide.md b/docs/function-guide.md index c5496b43..8d128987 100644 --- a/docs/function-guide.md +++ b/docs/function-guide.md @@ -342,7 +342,9 @@ method instead. ```golang // moduleName is already set to "math" by the math package. Do this in `init`. -funcs.ModuleRegister(moduleName, "cos", func() interfaces.Func { return &CosFunc{} }) +funcs.ModuleRegister(moduleName, "cos", func() interfaces.Func { + return &CosFunc{} +}) ``` ### Composite functions diff --git a/docs/puppet-guide.md b/docs/puppet-guide.md index 46ec486f..ec47413a 100644 --- a/docs/puppet-guide.md +++ b/docs/puppet-guide.md @@ -95,7 +95,8 @@ For example, translating a plain `file` resource will lead to a warning message: ``` $ puppet mgmtgraph print --code 'file { "/tmp/mgmt-test": }' -Warning: File[/tmp/mgmt-test] uses the 'puppet' file bucket, which mgmt cannot do. There will be no backup copies! +Warning: File[/tmp/mgmt-test] uses the 'puppet' file bucket, which mgmt cannot +do. There will be no backup copies! ``` The reason is that per default, Puppet assumes the following parameter value diff --git a/examples/lang/duplicate-error.mcl b/examples/lang/duplicate-error.mcl index b2e7a610..d883f338 100644 --- a/examples/lang/duplicate-error.mcl +++ b/examples/lang/duplicate-error.mcl @@ -1,8 +1,8 @@ # this combination should error pkg "cowsay" { - state => "uninstalled", + state => "uninstalled", } pkg "cowsay" { - state => "installed", + state => "installed", } diff --git a/examples/lang/duplicate.mcl b/examples/lang/duplicate.mcl index 62f694de..6a71510b 100644 --- a/examples/lang/duplicate.mcl +++ b/examples/lang/duplicate.mcl @@ -1,7 +1,7 @@ pkg "cowsay" { - state => "newest", + state => "newest", } pkg "cowsay" { - state => "installed", + state => "installed", } diff --git a/lang/interpret_test/TestAstFunc2/definition-site-scope.txtar b/lang/interpret_test/TestAstFunc2/definition-site-scope.txtar index f3d4979b..1359f635 100644 --- a/lang/interpret_test/TestAstFunc2/definition-site-scope.txtar +++ b/lang/interpret_test/TestAstFunc2/definition-site-scope.txtar @@ -1,16 +1,16 @@ -- main.mcl -- $x = "top-level" func f1() { - $x + "1" + $x + "1" } $f2 = func() { - $x + "2" + $x + "2" } $call_f1 = func($x) { - f1() + $x + f1() + $x } $call_f2 = func($x) { - $f2() + $x + $f2() + $x } test $call_f1("!") {} test $call_f2("?") {}