LTOVisibility.rst: fix up syntax in example
authorTeresa Johnson <tejohnson@google.com>
Wed, 8 Jan 2020 17:58:18 +0000 (09:58 -0800)
committerTeresa Johnson <tejohnson@google.com>
Wed, 8 Jan 2020 19:43:11 +0000 (11:43 -0800)
Summary: Pretty self-evident. This example was missing an lparen. Added it, and fixed up the ASCII art.

Patch by Nick Black <dankamongmen@gmail.com>

Reviewers: pcc

Reviewed By: pcc

Subscribers: tejohnson, mehdi_amini, inglorion, hiraditya, steven_wu, dexonsmith, cfe-commits

Tags: #llvm, #clang

Differential Revision: https://reviews.llvm.org/D70765

clang/docs/LTOVisibility.rst

index ed15d8d..3a60f54 100644 (file)
@@ -83,7 +83,7 @@ cases involving two linkage units, ``main`` and ``dso.so``.
     |  |  };                                                 |  |  |  struct E : D {                                    |
     |  |  struct [[clang::lto_visibility_public]] D {        |  |  |    virtual void g() { ... }                        |
     |  |    virtual void g() = 0;                            |  |  |  };                                                |
-    |  |  };                                                 |  |  |  __attribute__(visibility("default"))) D *mkE() {  |
+    |  |  };                                                 |  |  |  __attribute__((visibility("default"))) D *mkE() { |
     |  |                                                     |  |  |    return new E;                                   |
     |  +-----------------------------------------------------+  |  |  }                                                 |
     |                                                           |  |                                                    |