Skip to content

Commit

Permalink
Fix wrong section hierarchy in the manual (nim-lang#12724) [backport]
Browse files Browse the repository at this point in the history
(cherry picked from commit bfad005)
  • Loading branch information
tauplus authored and narimiran committed Nov 25, 2019
1 parent 8f0b891 commit c868f1e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions doc/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6638,15 +6638,6 @@ The compiler needs to be told to generate C++ (command ``cpp``) for
this to work. The conditional symbol ``cpp`` is defined when the compiler
emits C++ code.


ImportJs pragma
---------------

Similar to the `importcpp pragma for C++ <#foreign-function-interface-importc-pragma>`_,
the ``importjs`` pragma can be used to import Javascript methods or
symbols in general. The generated code then uses the Javascript method
calling syntax: ``obj.method(arg)``.

Namespaces
~~~~~~~~~~

Expand Down Expand Up @@ -6829,6 +6820,15 @@ Produces:
std::vector<int>::iterator x;
ImportJs pragma
---------------

Similar to the `importcpp pragma for C++ <#foreign-function-interface-importc-pragma>`_,
the ``importjs`` pragma can be used to import Javascript methods or
symbols in general. The generated code then uses the Javascript method
calling syntax: ``obj.method(arg)``.


ImportObjC pragma
-----------------
Similar to the `importc pragma for C
Expand Down

0 comments on commit c868f1e

Please sign in to comment.