aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Bergling <gbe@FreeBSD.org>2022-04-02 11:51:27 +0000
committerGordon Bergling <gbe@FreeBSD.org>2022-04-02 11:51:27 +0000
commitf167c46e7965ae08255313c4a624be19b4873442 (patch)
tree62042ab69b15cf7234531537fa3c54fac9a494ca
parent011e6016d0225e757a4475b082d1017804d259e9 (diff)
downloadsrc-f167c46e7965ae08255313c4a624be19b4873442.tar.gz
src-f167c46e7965ae08255313c4a624be19b4873442.zip
memguard(9): Fix two typos in source code comments
- s/comparsion/comparison/ MFC after: 3 days
-rw-r--r--sys/vm/memguard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/memguard.c b/sys/vm/memguard.c
index 20de6edfc339..bb6493ae5536 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);