Fix examples of "named metadata" (some of which isn't named).
authorNick Lewycky <nicholas@mxc.ca>
Wed, 13 Aug 2014 04:54:05 +0000 (04:54 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 13 Aug 2014 04:54:05 +0000 (04:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215522 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.rst

index 69816cc8141160ce8d97d95cc352d5fb70a6aba9..bcf4f6518292acafcfa3661ab31b86e252c271f6 100644 (file)
@@ -169,8 +169,8 @@ symbol table entries. Here is an example of the "hello world" module:
     }
 
     ; Named metadata
-    !1 = metadata !{i32 42}
-    !foo = !{!1, null}
+    !0 = metadata !{i32 42, null, metadata !"string"}
+    !foo = !{!0}
 
 This example is made up of a :ref:`global variable <globalvars>` named
 "``.str``", an external declaration of the "``puts``" function, a