[aisleriot] guile: Fix format usage
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aisleriot] guile: Fix format usage
- Date: Sat, 3 Dec 2011 16:49:50 +0000 (UTC)
commit 04f7d0ad596c9fcf718603b9d4cf19562bd926bb
Author: Christian Persch <chpe gnome org>
Date: Wed Nov 30 19:20:19 2011 +0100
guile: Fix format usage
Omitting the destination on a call to format is deprecated.
Pass #f as the destination, before the format string.
games/api.scm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/games/api.scm b/games/api.scm
index 607b13f..cd12be1 100644
--- a/games/api.scm
+++ b/games/api.scm
@@ -535,7 +535,7 @@
(#t (_"Move ~a onto the unknown card."))))))
(define-public (hint-move from-slot from-slot-count to-slot)
- (list 0 (format (hint-get-dest-format to-slot) (get-name (get-nth-card from-slot from-slot-count)))))
+ (list 0 (format #f (hint-get-dest-format to-slot) (get-name (get-nth-card from-slot from-slot-count)))))
(define-public (hint-click slot-id hint-string)
(list 0 hint-string))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]