1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-07 23:37:32 +02:00

Merge pull request #3507 from cjcbusatto/master

[coffeescript/pt-br] Fix typos and layout
This commit is contained in:
Divay Prakash
2019-04-02 22:07:51 +05:30
committed by GitHub

View File

@@ -3,6 +3,7 @@ language: coffeescript
contributors: contributors:
- ["Tenor Biel", "http://github.com/L8D"] - ["Tenor Biel", "http://github.com/L8D"]
- ["Xavier Yao", "http://github.com/xavieryao"] - ["Xavier Yao", "http://github.com/xavieryao"]
- ["Claudio Busatto", "http://github.com/cjcbusatto"]
translators: translators:
- ["Miguel Araújo", "https://github.com/miguelarauj1o"] - ["Miguel Araújo", "https://github.com/miguelarauj1o"]
lang: pt-br lang: pt-br
@@ -31,24 +32,24 @@ Você deveria entender mais de semântica de JavaScript antes de continuar...
### ###
# Tarefa: # Tarefa:
numero = 42 #=> mero var = 42; numero = 42 #=> var numero = 42;
oposto = true #=> var oposto = true; oposto = true #=> var oposto = true;
# Condições: # Condições:
numero = -42 if oposto #=> if (oposto) {número = -42;} numero = -42 if oposto #=> if (oposto) {numero = -42;}
# Funções: # Funções:
quadrado = (x) -> x * x #=> var quadrado = function (x) {return x * x;} quadrado = (x) -> x * x #=> var quadrado = function (x) {return x * x;}
preencher = (recipiente, líquido = "coffee") -> preencher = (recipiente, liquido = "coffee") ->
"Preenchendo o #{recipiente} with #{líquido}..." "Preenchendo o #{recipiente} with #{liquido}..."
#=>var preencher; #=>var preencher;
# #
#preencher = function(recipiente, líquido) { #preencher = function(recipiente, liquido) {
# if (líquido == null) { # if (liquido == null) {
# líquido = "coffee"; # liquido = "coffee";
# } # }
# return "Preenchendo o " + recipiente + " with " + líquido + "..."; # return "Preenchendo o " + recipiente + " with " + liquido + "...";
#}; #};
# Alcances: # Alcances:
@@ -99,6 +100,7 @@ eat alimento for alimento in comidas when alimento isnt 'chocolate'
# if (alimento !== 'chocolate') { # if (alimento !== 'chocolate') {
# eat(alimento); # eat(alimento);
# } # }
```
## Recursos adicionais ## Recursos adicionais