; * doc/lispref/searching.texi (Rx Notation): Simplify rx example
authorMattias Engdegård <mattiase@acm.org>
Mon, 9 Sep 2024 13:18:36 +0000 (15:18 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 9 Sep 2024 13:22:32 +0000 (15:22 +0200)
doc/lispref/searching.texi

index 7b4a9100e77987950402b9c0f0520e793a37b2ed..4691a6557e8b02625ed713770619b4cbfc8de5a6 100644 (file)
@@ -1028,13 +1028,13 @@ programming language:
 
 @example
 @group
-(rx "/*"                          ; Initial /*
+(rx "/*"                    ; Initial /*
     (zero-or-more
-     (or (not (any "*"))          ;  Either non-*,
-         (seq "*"                 ;  or * followed by
-              (not (any "/")))))  ;  non-/
-    (one-or-more "*")             ; At least one star,
-    "/")                          ; and the final /
+     (or (not "*")          ;  Either non-*,
+         (seq "*"           ;  or * followed by
+              (not "/"))))  ;     non-/
+    (one-or-more "*")       ; At least one star,
+    "/")                    ; and the final /
 @end group
 @end example