Преглед изворни кода

Implement #2140 in the design docs. (#2176)

This implements #2140 in the design docs.
Richard Smith пре 3 година
родитељ
комит
deee3a97de
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      docs/design/lexical_conventions/string_literals.md

+ 2 - 1
docs/design/lexical_conventions/string_literals.md

@@ -145,7 +145,7 @@ var String: invalid = '''
 ```
 
 A _file type indicator_ is any sequence of non-whitespace characters other than
-`"` or `#`. The file type indicator has no semantic meaning to the Carbon
+`'` or `#`. The file type indicator has no semantic meaning to the Carbon
 compiler, but some file type indicators are understood by the language tooling
 (for example, syntax highlighter, code formatter) as indicating the structure of
 the string literal's content.
@@ -331,6 +331,7 @@ string in the type system. In such string literals, we should consider rejecting
     -   [Trailing whitespace](/proposals/p0199.md#trailing-whitespace)
     -   [Line separators](/proposals/p0199.md#line-separators)
 -   [Internal whitespace](/proposals/p0199.md#internal-whitespace)
+-   [Different restrictions for file type indicators](https://github.com/carbon-language/carbon-lang/issues/2140)
 
 ## References