Skip to content

Commit

Permalink
Fix typo in docs (#349)
Browse files Browse the repository at this point in the history
* Fix typos in docs
  • Loading branch information
anutosh491 authored Feb 12, 2025
1 parent 851a2df commit cfd2949
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/source/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ namespace sp = sparrow;
sp::primitive_array<int> pa = { 1, 2, 3, 4};
sp::array ar(std::move(pa));
ArrowArray* arr = get_arrow_array(ar);
ArrowSchema sch = get_arrow_schema(ar);
ArrowSchema* sch = get_arrow_schema(ar);
// OR
auto [arr, sch] = get_arrow_structures(ar);
```
Expand All @@ -179,7 +179,7 @@ namespace sp = sparrow;
sp::primitive_array<int> pa = { 1, 2, 3, 4};
sp::array ar(std::move(pa));
ArrowArray* arr = extract_arrow_array(std::move(ar));
ArrowSchema sch = extract_arrow_schema(std::move(ar));
ArrowSchema* sch = extract_arrow_schema(std::move(ar));
// OR
auto [arr, sch] = extract_arrow_structures(std::move(ar));
// ...
Expand Down
4 changes: 2 additions & 2 deletions docs/source/typed_array.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ sp::nullable<int> n = 2;
std::cout << n.has_value() << std::endl; // Prints true
std::cout << n.value() << std::endl; // Prints 2

stp::nullable<double> nd = sp::nullval;
std::cout << nd.has_value() << std::end; // Prints false
sp::nullable<double> nd = sp::nullval;
std::cout << nd.has_value() << std::endl; // Prints false
```
Contrary to [std::optional](https://en.cppreference.com/w/cpp/utility/optional), \ref nullable
Expand Down

0 comments on commit cfd2949

Please sign in to comment.