]> git.eshelyaron.com Git - emacs.git/commitdiff
; * 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)
committerEshel Yaron <me@eshelyaron.com>
Sat, 14 Sep 2024 20:19:24 +0000 (22:19 +0200)
(cherry picked from commit f47297782bdb5e5a07e02f119c8013d11f7d7fae)

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