Skip to content

Commit

Permalink
[docs] Mention character array constants in docs/LangRef.rst
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dsandersllvm committed Sep 11, 2014
1 parent c1df48d commit d7d96ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/LangRef.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7d96ee

Please sign in to comment.