unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40674] [PATCH]: typos & small fixes in guix/ui.scm
@ 2020-04-16 21:44 Vincent Legoll
  2020-04-17 21:09 ` bug#40674: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Legoll @ 2020-04-16 21:44 UTC (permalink / raw)
  To: 40674

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

Hello,

here is a patch to fix a few fairly trivial things.

I saw the first one (s/IDENT/INDENT/) reading a patch
in the ML, and while I was in that file, searched
for other ones.

The line-length fix (1st hunk) may not be suitable...

The grammar fix (last hunk) may not be a real english
fix, dunno.

Will this create merge conflicts for others ?

WDYT ?

-- 
Vincent Legoll


[-- Attachment #2: 0001-guix-ui-Fix-typos-80-col-grammar-in-comments-docstri.patch --]
[-- Type: text/x-patch, Size: 3497 bytes --]

From b1c5e90d85a15e87d075d2547c02bb49fe5a54a6 Mon Sep 17 00:00:00 2001
From: Vincent Legoll <vincent.legoll@gmail.com>
Date: Thu, 16 Apr 2020 23:17:16 +0200
Subject: [PATCH] guix: ui: Fix typos, 80-col & grammar in comments &
 docstrings

* guix/ui.scm (load*): Fix comment line length.
(leave-on-EPIPE): Fix typo in docstring.
(substitutable-info): Fix typo in comment.
(indented-string): Fix typo in docstring.
(%package-metrics): Fix typo in comment.
(run-guix): Fix grammar in docstring.
---
 guix/ui.scm | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/guix/ui.scm b/guix/ui.scm
index 1ccc80a000..ea5f460865 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -234,8 +234,8 @@ information, or #f if it could not be found."
 
                ;; Give 'load' an absolute file name so that it doesn't try to
                ;; search for FILE in %LOAD-PATH.  Note: use 'load', not
-               ;; 'primitive-load', so that FILE is compiled, which then allows us
-               ;; to provide better error reporting with source line numbers.
+               ;; 'primitive-load', so that FILE is compiled, which then allows
+               ;; us to provide better error reporting with source line numbers.
                (load (canonicalize-path file)))
              (const #f))))))
     (lambda _
@@ -796,7 +796,7 @@ directories:~{ ~a~}~%")
                (apply format #f format-string format-args))))))
 
 (define-syntax-rule (leave-on-EPIPE exp ...)
-  "Run EXP... in a context when EPIPE errors are caught and lead to 'exit'
+  "Run EXP... in a context where EPIPE errors are caught and lead to 'exit'
 with successful exit code.  This is useful when writing to the standard output
 may lead to EPIPE, because the standard output is piped through 'head' or
 similar."
@@ -925,7 +925,7 @@ download."
          drv))
 
   (define substitutable-info
-    ;; Call 'substitutation-oracle' upfront so we don't end up launching the
+    ;; Call 'substitution-oracle' upfront so we don't end up launching the
     ;; substituter many times.  This makes a big difference, especially when
     ;; DRV is a long list as is the case with 'guix environment'.
     (if use-substitutes?
@@ -1251,7 +1251,7 @@ separator between subsequent columns."
 
 (define* (indented-string str indent
                           #:key (initial-indent? #t))
-  "Return STR with each newline preceded by IDENT spaces.  When
+  "Return STR with each newline preceded by INDENT spaces.  When
 INITIAL-INDENT? is true, the first line is also indented."
   (define indent-string
     (make-list indent #\space))
@@ -1534,7 +1534,7 @@ score, the more relevant OBJ is to REGEXPS."
     (,(lambda (package)
         (filter (lambda (output)
                   (not (member output
-                               ;; Some common outpus shared by many packages.
+                               ;; Some common outputs shared by many packages.
                                '("out" "doc" "debug" "lib" "include" "bin"))))
                 (package-outputs package)))
      . 1)
@@ -1942,7 +1942,7 @@ found."
 (define (run-guix . args)
   "Run the 'guix' command defined by command line ARGS.
 Unlike 'guix-main', this procedure assumes that locale, i18n support,
-and signal handling has already been set up."
+and signal handling have already been set up."
   (define option? (cut string-prefix? "-" <>))
 
   ;; The default %LOAD-EXTENSIONS includes the empty string, which doubles the
-- 
2.26.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#40674: [PATCH]: typos & small fixes in guix/ui.scm
  2020-04-16 21:44 [bug#40674] [PATCH]: typos & small fixes in guix/ui.scm Vincent Legoll
@ 2020-04-17 21:09 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-04-17 21:09 UTC (permalink / raw)
  To: Vincent Legoll; +Cc: 40674-done

Hi,

Vincent Legoll <vincent.legoll@gmail.com> skribis:

> Will this create merge conflicts for others ?

No, I think it’s fine.

>>From b1c5e90d85a15e87d075d2547c02bb49fe5a54a6 Mon Sep 17 00:00:00 2001
> From: Vincent Legoll <vincent.legoll@gmail.com>
> Date: Thu, 16 Apr 2020 23:17:16 +0200
> Subject: [PATCH] guix: ui: Fix typos, 80-col & grammar in comments &
>  docstrings
>
> * guix/ui.scm (load*): Fix comment line length.
> (leave-on-EPIPE): Fix typo in docstring.
> (substitutable-info): Fix typo in comment.
> (indented-string): Fix typo in docstring.
> (%package-metrics): Fix typo in comment.
> (run-guix): Fix grammar in docstring.

Applied, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-17 21:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16 21:44 [bug#40674] [PATCH]: typos & small fixes in guix/ui.scm Vincent Legoll
2020-04-17 21:09 ` bug#40674: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).