File 1529-Fix-typos-in-erts-emulator-nifs.patch of Package erlang

From dd7e45dde937e9e991112dcea9cd9d599cca7179 Mon Sep 17 00:00:00 2001
From: "Kian-Meng, Ang" <kianmeng@cpan.org>
Date: Thu, 25 Nov 2021 13:28:23 +0800
Subject: [PATCH] Fix typos in erts/emulator/nifs

---
 erts/emulator/nifs/common/prim_net_nif.c    | 10 +++---
 erts/emulator/nifs/common/prim_socket_nif.c | 40 ++++++++++-----------
 erts/emulator/nifs/common/socket_dbg.c      |  2 +-
 erts/emulator/nifs/common/socket_util.c     |  4 +--
 erts/emulator/nifs/win32/win_prim_file.c    |  4 +--
 5 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/erts/emulator/nifs/win32/win_prim_file.c b/erts/emulator/nifs/win32/win_prim_file.c
index b1412ec1a5..9d74252b8c 100644
--- a/erts/emulator/nifs/win32/win_prim_file.c
+++ b/erts/emulator/nifs/win32/win_prim_file.c
@@ -428,7 +428,7 @@ static int is_path_root(const efile_path_t *path) {
         path_iterator++;
     }  while(path_iterator < path_end && !IS_SLASH(*path_iterator));
 
-    /* If we're past the end of the string and it didnt't end with a slash,
+    /* If we're past the end of the string and it didn't end with a slash,
      * then we're a root path. */
     return path_iterator >= path_end && !IS_SLASH(path_start[length - 1]);
 }
-- 
2.31.1

openSUSE Build Service is sponsored by