From 33db7a06e0a2f4e2194108e9ab42ba0a3b4ddba5 Mon Sep 17 00:00:00 2001
From: b0lek <95943440+b0lek@users.noreply.github.com>
Date: Sun, 12 Dec 2021 14:43:16 +0100
Subject: [PATCH] Fixed typo and some comments

---
 src/wordlist.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/wordlist.c b/src/wordlist.c
index 45ac0aefc..fabf61f9e 100644
--- a/src/wordlist.c
+++ b/src/wordlist.c
@@ -119,7 +119,7 @@ void get_next_word_lm_gen (char *buf, u64 sz, u64 *len, u64 *off, u64 cutlen)
     if ((i > 0) && (buf[i - 1] == '\r')) i--;
 
     if (i < cutlen + 1) *len = i;
- 
+
     return;
   }
 
@@ -145,7 +145,7 @@ void get_next_word_lm_hex_or_text (char *buf, u64 sz, u64 *len, u64 *off)
   if (hex && (buf[3]       != 'X')) hex = false;
   if (hex && (buf[4]       != '[')) hex = false;
   if (hex){
-    char *ptr = buf+5;
+    char *ptr = buf+5;     // starting after '['
     for (u64 i = 5; i < sz; i++, ptr++)
     {
       if (*ptr == ']')
@@ -160,7 +160,7 @@ void get_next_word_lm_hex_or_text (char *buf, u64 sz, u64 *len, u64 *off)
           hex = false;
           break;
         }
-        // upcase character if it is as letter
+        // upcase character if it is a letter 'a-z'
         if ((i & 1) == 1) // if first hex-char
         { 
           if (is_valid_hex_char(buf[i+1])){