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

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 79e328b3b7 MINOR: [JS][Docs] Correct typo in README (#38658)
79e328b3b7 is described below

commit 79e328b3b7ce23002bc46904c1944654ce4cd0a3
Author: Benjamin Schmidt <[email protected]>
AuthorDate: Thu Nov 9 15:19:03 2023 -0500

    MINOR: [JS][Docs] Correct typo in README (#38658)
    
    
    ### Rationale for this change
    
    A demo variable is named 'uft8' but should clearly be 'utf8'.
    
    ### What changes are included in this PR?
    
    Two transpostions of two characters
    
    ### Are these changes tested?
    
    N/A
    
    ### Are there any user-facing changes?
    
    No
    
    Authored-by: Benjamin Schmidt <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 js/README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/js/README.md b/js/README.md
index f626ef7240..f3dd3fef89 100644
--- a/js/README.md
+++ b/js/README.md
@@ -151,7 +151,7 @@ Strings can be encoded as UTF-8 or dictionary encoded 
UTF-8. Dictionary encoding
 ```js
 import { makeVector, vectorFromArray, Dictionary, Uint8, Utf8 } from 
"apache-arrow";
 
-const uft8Vector = vectorFromArray(['foo', 'bar', 'baz'], new Utf8);
+const utf8Vector = vectorFromArray(['foo', 'bar', 'baz'], new Utf8);
 
 const dictionaryVector1 = vectorFromArray(
     ['foo', 'bar', 'baz', 'foo', 'bar']
@@ -159,7 +159,7 @@ const dictionaryVector1 = vectorFromArray(
 
 const dictionaryVector2 = makeVector({
     data: [0, 1, 2, 0, 1],  // indexes into the dictionary
-    dictionary: uft8Vector,
+    dictionary: utf8Vector,
     type: new Dictionary(new Utf8, new Uint8)
 });
 ```

Reply via email to