summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorW. Kosior <koszko@koszko.org>2025-02-07 21:04:19 +0100
committerW. Kosior <koszko@koszko.org>2025-02-17 13:54:45 +0100
commit4852b4e31d07a96462ab82c3861dff99e319f47d (patch)
treefa6697435e435068dca6c24e3fa117c930964c7d
parent4b667c190098d9dbcdc676dfc39b6233a98e7a53 (diff)
downloadde-paul-records-4852b4e31d07a96462ab82c3861dff99e319f47d.tar.gz
de-paul-records-4852b4e31d07a96462ab82c3861dff99e319f47d.zip
Minor inline code markup correction in README.
-rw-r--r--README.md2
-rw-r--r--tests/guile/de-paul-records-test.scm9
2 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md
index 93f5a40..741e890 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@ arguments which makes their use error-prone. A solution would be to — for eve
record type defined — define one "null" record object and then construct
subsequent records of this type by cloning and modifying that null record.
-This library builds upon @code{(srfi srfi-9 gnu)} to aid with this and also with
+This library builds upon `(srfi srfi-9 gnu)` to aid with this and also with
other tasks. Features include
- automatic deriving of getter names from field names,
diff --git a/tests/guile/de-paul-records-test.scm b/tests/guile/de-paul-records-test.scm
index a4e82a1..275d1a3 100644
--- a/tests/guile/de-paul-records-test.scm
+++ b/tests/guile/de-paul-records-test.scm
@@ -20,9 +20,9 @@
(or (eval '(begin
(define-module (de-paul-records-test lisp)
#:use-module ((de-paul-records) #:select
- (define-immutable-record-type*)))
+ (deftype match set-field)))
- (define-immutable-record-type* lisp
+ (deftype lisp
(name)
is-scheme?
#:export? yes,ofcourse
@@ -203,7 +203,8 @@
(tu:test-assert
(or (eval '(begin
(define-module (de-paul-records-test rsa-secret-key-1)
- #:use-module ((de-paul-records)))
+ #:use-module ((de-paul-records) #:select
+ (define-immutable-record-type*)))
(define-immutable-record-type* rsa-secret-key
(bytes)
@@ -220,7 +221,7 @@
(or (eval '(begin
(define-module (de-paul-records-test rsa-secret-key-2)
;; This time use our alias to `define-immutable-record-type*'.
- #:use-module ((de-paul-records) #:select (deftype)))
+ #:use-module (de-paul-records))
(deftype rsa-secret-key (bytes)))
(make-env))