« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/util/wrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'util/wrap.js')
-rw-r--r--util/wrap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/wrap.js b/util/wrap.js
index 78e5233..3c381d4 100644
--- a/util/wrap.js
+++ b/util/wrap.js
@@ -7,7 +7,7 @@ module.exports = function wrap(str, width) {
 
   let curLine = words[0]
 
-  for (let word of words.slice(1)) {
+  for (const word of words.slice(1)) {
     if (curLine.length + word.length > width) {
       lines.push(curLine)
       curLine = word