From 52c74e4f17f034a398a85a8f7832264f31bb9787 Mon Sep 17 00:00:00 2001 From: Claudio Busatto Date: Wed, 27 Mar 2019 19:46:41 +0100 Subject: Fix layout and typos --- pt-br/coffeescript-pt.html.markdown | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'pt-br/coffeescript-pt.html.markdown') diff --git a/pt-br/coffeescript-pt.html.markdown b/pt-br/coffeescript-pt.html.markdown index 8b1094b1..37a70006 100644 --- a/pt-br/coffeescript-pt.html.markdown +++ b/pt-br/coffeescript-pt.html.markdown @@ -31,24 +31,24 @@ Você deveria entender mais de semântica de JavaScript antes de continuar... ### # Tarefa: -numero = 42 #=> número var = 42; +numero = 42 #=> var numero = 42; oposto = true #=> var oposto = true; # Condições: -numero = -42 if oposto #=> if (oposto) {número = -42;} +numero = -42 if oposto #=> if (oposto) {numero = -42;} # Funções: quadrado = (x) -> x * x #=> var quadrado = function (x) {return x * x;} -preencher = (recipiente, líquido = "coffee") -> - "Preenchendo o #{recipiente} with #{líquido}..." +preencher = (recipiente, liquido = "coffee") -> + "Preenchendo o #{recipiente} with #{liquido}..." #=>var preencher; # -#preencher = function(recipiente, líquido) { -# if (líquido == null) { -# líquido = "coffee"; +#preencher = function(recipiente, liquido) { +# if (liquido == null) { +# liquido = "coffee"; # } -# return "Preenchendo o " + recipiente + " with " + líquido + "..."; +# return "Preenchendo o " + recipiente + " with " + liquido + "..."; #}; # Alcances: @@ -90,17 +90,18 @@ cubes = (math.cube num for num in list) # return _results; # })(); -comidas = ['brócolis', 'espinafre', 'chocolate'] +comidas = ['brocolis', 'espinafre', 'chocolate'] eat alimento for alimento in comidas when alimento isnt 'chocolate' -#=>comidas = ['brócolis', 'espinafre', 'chocolate']; +#=>comidas = ['brocolis', 'espinafre', 'chocolate']; # #for (_k = 0, _len2 = comidas.length; _k < _len2; _k++) { # alimento = comidas[_k]; # if (alimento !== 'chocolate') { # eat(alimento); # } +``` ## Recursos adicionais - [Smooth CoffeeScript](http://autotelicum.github.io/Smooth-CoffeeScript/) -- [CoffeeScript Ristretto](https://leanpub.com/coffeescript-ristretto/read) \ No newline at end of file +- [CoffeeScript Ristretto](https://leanpub.com/coffeescript-ristretto/read) -- cgit v1.2.3