This is an automated email from the ASF dual-hosted git repository.

junma pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 84a4379bdc1 [fix][doc] fix doc and template error (#18277)
84a4379bdc1 is described below

commit 84a4379bdc1d746249c50a0fb0d42318ac4364e8
Author: labuladong <[email protected]>
AuthorDate: Tue Nov 1 19:38:56 2022 +0800

    [fix][doc] fix doc and template error (#18277)
    
    * fix some error
    
    * Update site2/docs/functions-overview.md
    
    Co-authored-by: tison <[email protected]>
    
    Co-authored-by: tison <[email protected]>
---
 .github/ISSUE_TEMPLATE/flaky-test.yml  | 4 ++--
 site2/docs/functions-overview.md       | 6 +++---
 site2/docs/functions-package-python.md | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/.github/ISSUE_TEMPLATE/flaky-test.yml 
b/.github/ISSUE_TEMPLATE/flaky-test.yml
index f46ff539849..d3e5ec06171 100644
--- a/.github/ISSUE_TEMPLATE/flaky-test.yml
+++ b/.github/ISSUE_TEMPLATE/flaky-test.yml
@@ -51,9 +51,9 @@ body:
 
         <details>
         <summary>Full exception stacktrace</summary>
-        <code><pre>
+        <pre><code>
           full exception stacktrace here
-        </pre></code>
+        </code></pre>
         </details>
     validations:
       required: true
diff --git a/site2/docs/functions-overview.md b/site2/docs/functions-overview.md
index e017695ddb9..c01a8230855 100644
--- a/site2/docs/functions-overview.md
+++ b/site2/docs/functions-overview.md
@@ -26,9 +26,9 @@ Each time a function receives a message, it completes the 
following consume-appl
 1. Consumes the message from one or more **input topics**. 
 2. Applies the customized (user-supplied) processing logic to the message.
 3. Publishes the output of the message, including:
-    a) writes output messages to an **output topic** in Pulsar
-    b) writes logs to a **log topic** (if it is configured)for debugging
-    c) writes [state](functions-develop-state.md) updates to BookKeeper (if it 
is configured) 
+    1. writes output messages to an **output topic** in Pulsar
+    2. writes logs to a **log topic** (if it is configured)for debugging
+    3. writes [state](functions-develop-state.md) updates to BookKeeper (if it 
is configured) 
     
 You can write functions in Java, Python, and Go. For example, you can use 
Pulsar Functions to set up the following processing chain:
 * A Python function listens for the `raw-sentences` topic and "sanitizes" 
incoming strings (removing extraneous white space and converting all characters 
to lowercase) and then publishes the results to a `sanitized-sentences` topic.
diff --git a/site2/docs/functions-package-python.md 
b/site2/docs/functions-package-python.md
index 6caf88e5730..80f09362940 100644
--- a/site2/docs/functions-package-python.md
+++ b/site2/docs/functions-package-python.md
@@ -16,7 +16,7 @@ To package a Python function into **one Python file**, 
complete the following st
 1. Write a Python function.
 
    ```python
-    from pulsar import Function //  import the Function module from Pulsar
+    from pulsar import Function #  import the Function module from Pulsar
 
     # The classic ExclamationFunction that appends an exclamation at the end
     # of the input
@@ -151,7 +151,7 @@ To package a Python function with **PIP**, complete the 
following steps.
        pass
 
      def process(self, input, context):
-      // add your logic
+      # add your logic
       return input + '!'
    ```
 

Reply via email to