[docs] Mention character array constants in docs/LangRef.rst
authorDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 11 Sep 2014 12:02:59 +0000 (12:02 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 11 Sep 2014 12:02:59 +0000 (12:02 +0000)
Summary:
They were used in the 'Module Structure' example but weren't otherwise
documented.

Credit to Reed Kotler for noticing.

Reviewers: hans

Reviewed By: hans

Subscribers: hans, llvm-commits

Differential Revision: http://reviews.llvm.org/D5191

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217583 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.rst

index bee794265557ed390d6f1c8fb94b5da6edd5d58d..f2d69820cd89e878e50e62b0e364d535b083fbf0 100644 (file)
@@ -2276,7 +2276,9 @@ constants and smaller complex constants.
     square brackets (``[]``)). For example:
     "``[ i32 42, i32 11, i32 74 ]``". Array constants must have
     :ref:`array type <t_array>`, and the number and types of elements must
-    match those specified by the type.
+    match those specified by the type. As a special case, character array
+    constants may also be represented as a double-quoted string using the ``c``
+    prefix. For example: "``c"Hello World\0A\00"``".
 **Vector constants**
     Vector constants are represented with notation similar to vector
     type definitions (a comma separated list of elements, surrounded by