]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
xgettext: Rust: Fix comments.
authorBruno Haible <bruno@clisp.org>
Tue, 11 Feb 2025 08:25:57 +0000 (09:25 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 11 Feb 2025 10:39:58 +0000 (11:39 +0100)
* gettext-tools/src/x-rust.c: Fix reference to the Rust specification.

gettext-tools/src/x-rust.c

index 0e1f86c0397910f99c4f737445aa032ab7465aff..2440bb9b82eabd0b64a54335d096d7a1bb44098a 100644 (file)
@@ -57,9 +57,9 @@
 extern const TSLanguage *tree_sitter_rust (void);
 
 
-/* The Rust syntax is defined in https://doc.rust-lang.org/1.6.0/reference.html.
+/* The Rust syntax is defined in https://doc.rust-lang.org/1.84.0/reference/index.html.
    String syntax:
-   https://doc.rust-lang.org/1.6.0/reference.html#character-and-string-literals
+   https://doc.rust-lang.org/1.84.0/reference/tokens.html#character-and-string-literals
  */
 
 #define DEBUG_RUST 0
@@ -388,7 +388,7 @@ string_literal_value (TSNode node, const char *contents)
                 {
                 case '\\':
                 case '"':
-                case '\'': /* Not documented, but accepted by rustc.  */
+                case '\'':
                   sb_xappend1 (&buffer, escape_start[1]);
                   break;
                 case 'n':