Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Apr 2022 06:33:53 GMT
From:      Gordon Bergling <gbe@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 944d201a2a38 - stable/12 - memguard(9): Fix two typos in source code comments
Message-ID:  <202204090633.2396Xrto062543@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by gbe (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=944d201a2a38a4579ac21a19b5e660a95d50d635

commit 944d201a2a38a4579ac21a19b5e660a95d50d635
Author:     Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2022-04-02 11:51:27 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2022-04-09 06:29:54 +0000

    memguard(9): Fix two typos in source code comments
    
    - s/comparsion/comparison/
    
    (cherry picked from commit f167c46e7965ae08255313c4a624be19b4873442)
---
 sys/vm/memguard.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/vm/memguard.c b/sys/vm/memguard.c
index 79c4503320f3..b24cd21dc540 100644
--- a/sys/vm/memguard.c
+++ b/sys/vm/memguard.c
@@ -464,7 +464,7 @@ memguard_cmp_mtp(struct malloc_type *mtp, unsigned long size)
 
 #if 1
 	/*
-	 * The safest way of comparsion is to always compare short description
+	 * The safest way of comparison is to always compare short description
 	 * string of memory type, but it is also the slowest way.
 	 */
 	return (strcmp(mtp->ks_shortdesc, vm_memguard_desc) == 0);
@@ -498,7 +498,7 @@ memguard_cmp_zone(uma_zone_t zone)
 		return (1);
 
 	/*
-	 * The safest way of comparsion is to always compare zone name,
+	 * The safest way of comparison is to always compare zone name,
 	 * but it is also the slowest way.
 	 */
 	return (strcmp(zone->uz_name, vm_memguard_desc) == 0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204090633.2396Xrto062543>