[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/5] service: Add docstring to 'lookup-services'.
From: |
Alex Kost |
Subject: |
[PATCH 4/5] service: Add docstring to 'lookup-services'. |
Date: |
Sun, 24 Jan 2016 18:33:10 +0300 |
* modules/shepherd/service.scm (lookup-services): Use docstring instead
of a comment.
---
modules/shepherd/service.scm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/shepherd/service.scm b/modules/shepherd/service.scm
index 0a13626..fd9c7e2 100644
--- a/modules/shepherd/service.scm
+++ b/modules/shepherd/service.scm
@@ -845,9 +845,8 @@ Return #f if service is not found."
%services)
#f)))
-;; Lookup the services that provide NAME. Returns a (possibly empty)
-;; list of those.
(define (lookup-services name)
+ "Return a (possibly empty) list of services that provide NAME."
(hashq-ref %services name '()))
(define waitpid*
--
2.6.3
- [SHEPHERD] [PATCH 0/5] Replace 'dmd' service with 'root/shepherd'., Alex Kost, 2016/01/24
- [PATCH 2/5] service: Improve style of 'for-each-service'., Alex Kost, 2016/01/24
- [PATCH 3/5] service: 'service-list' returns unique services., Alex Kost, 2016/01/24
- [PATCH 4/5] service: Add docstring to 'lookup-services'.,
Alex Kost <=
- [PATCH 1/5] service: Rename 'services' variable to '%services'., Alex Kost, 2016/01/24
- [PATCH 5/5] Rename 'dmd' service to 'root'., Alex Kost, 2016/01/24
- Re: [SHEPHERD] [PATCH 0/5] Replace 'dmd' service with 'root/shepherd'., Ludovic Courtès, 2016/01/24