From: Daniel Sanders Date: Thu, 11 Sep 2014 12:02:59 +0000 (+0000) Subject: [docs] Mention character array constants in docs/LangRef.rst X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d7d96ee191c27333352164ffca7e626debf50c5e;p=oota-llvm.git [docs] Mention character array constants in docs/LangRef.rst 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 --- diff --git a/docs/LangRef.rst b/docs/LangRef.rst index bee79426555..f2d69820cd8 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -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 `, 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