Archived
1
0
Fork 0

build: substitute*: Fix typo in example.

* guix/build/utils.scm (substitute*): Fix typo in example in docstring,
use consistent variable names.
This commit is contained in:
Efraim Flashner 2020-05-25 10:46:43 +03:00
parent 8c42a25b77
commit ff6e33e7ee
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -5,6 +5,7 @@
;;; Copyright © 2015, 2018 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2015, 2018 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net> ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -800,7 +801,7 @@ sub-expression. For example:
((\"hello\") ((\"hello\")
\"good morning\\n\") \"good morning\\n\")
((\"foo([a-z]+)bar(.*)$\" all letters end) ((\"foo([a-z]+)bar(.*)$\" all letters end)
(string-append \"baz\" letter end))) (string-append \"baz\" letters end)))
Here, anytime a line of FILE contains \"hello\", it is replaced by \"good Here, anytime a line of FILE contains \"hello\", it is replaced by \"good
morning\". Anytime a line of FILE matches the second regexp, ALL is bound to morning\". Anytime a line of FILE matches the second regexp, ALL is bound to