diff options
| author | Julien M'Poy <julien.mpoy@gmail.com> | 2017-11-08 13:29:24 +0100 | 
|---|---|---|
| committer | Julien M'Poy <julien.mpoy@gmail.com> | 2017-11-08 13:29:24 +0100 | 
| commit | 5e81853768c0f3cc55c05e0dfec18773045df952 (patch) | |
| tree | b62c3fb0bfc6de3318e962b330e163f3d65cdfa6 /awk.html.markdown | |
| parent | 20893f5d83b4f7a1585bac9e7656d6af46183262 (diff) | |
| parent | 6ce71c56d6affb57a3537a2732485a4918306d4b (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'awk.html.markdown')
| -rw-r--r-- | awk.html.markdown | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/awk.html.markdown b/awk.html.markdown index 0e27528d..e3ea6318 100644 --- a/awk.html.markdown +++ b/awk.html.markdown @@ -38,7 +38,7 @@ BEGIN {      a = count + 1      b = count - 1      c = count * 1 -    d = count / 1 +    d = count / 1 # integer division      e = count % 1 # modulus      f = count ^ 1 # exponentiation @@ -143,7 +143,7 @@ BEGIN {  }  # Here's how you define a function -function arithmetic_functions(a, b, c,     localvar) { +function arithmetic_functions(a, b, c,     d) {      # Probably the most annoying part of AWK is that there are no local      # variables. Everything is global. For short scripts, this is fine, even | 
