lib: Fix spelling

Change-Id: I999987af9cb44906e3c3135c0351a0cd6eb210ff
Signed-off-by: Martin Roth <martin.roth@se-eng.com>
Reviewed-on: http://review.coreboot.org/3756
Reviewed-by: Dave Frodin <dave.frodin@se-eng.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
diff --git a/src/lib/memrange.c b/src/lib/memrange.c
index 1a16ef7..af56e72 100644
--- a/src/lib/memrange.c
+++ b/src/lib/memrange.c
@@ -183,7 +183,7 @@
 	remove_memranges(ranges, begin, end, -1);
 
 	/* Find the entry to place the new entry after. Since
-	 * remove_memranges() was called above there is a guranteed
+	 * remove_memranges() was called above there is a guaranteed
 	 * spot for this new entry. */
 	for (cur = ranges->entries; cur != NULL; cur = cur->next) {
 		/* Found insertion spot before current entry. */
@@ -292,7 +292,7 @@
 			continue;
 		}
 
-		/* If the previous entry does not directly preceed the current
+		/* If the previous entry does not directly precede the current
 		 * entry then add a new entry just after the previous one. */
 		if (range_entry_end(prev) != cur->begin) {
 			resource_t end;