zip: fix typos in documentation
Change-Id: I59d3fcbea6bc0f2d86ccc245c0e23889c03b07e4
Reviewed-on: https://go-review.googlesource.com/c/mod/+/205037
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
diff --git a/zip/zip.go b/zip/zip.go
index 75ceb2b..d2811de 100644
--- a/zip/zip.go
+++ b/zip/zip.go
@@ -98,7 +98,7 @@
// Create verifies the restrictions described in the package documentation
// and should not produce an archive that Unzip cannot extract. Create does not
// include files in the output archive if they don't belong in the module zip.
-// In particular, Create will not include files in mdoules found in
+// In particular, Create will not include files in modules found in
// subdirectories, most files in vendor directories, or irregular files (such
// as symbolic links) in the output archive.
func Create(w io.Writer, m module.Version, files []File) (err error) {
@@ -233,7 +233,7 @@
// CreateFromDir does not include files in the output archive if they don't
// belong in the module zip. In particular, CreateFromDir will not include
// files in modules found in subdirectories, most files in vendor directories,
-// or irregular files (such as symbolic links) in the output archive.
+// or irregular files (such as symbolic links) in the output archive.
func CreateFromDir(w io.Writer, m module.Version, dir string) (err error) {
defer func() {
if zerr, ok := err.(*zipError); ok {