Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9059

[Rust] Documentation for slicing array data has the wrong sign

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.0.0
    • Rust

    Description

      In the slice_data function in array.rs, the docstring says it panics if offset+length is less than data.len(), the code actually panics if offset + length is greater than data.len()

      Attachments

        Issue Links

          Activity

            People

              bobbywagner Bobby Wagner
              bobbywagner Bobby Wagner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h