Skip to content

Commit

Permalink
Add links in doc comments
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge Leitao <jorgecarleitao@gmail.com>
  • Loading branch information
alamb and jorgecarleitao authored Aug 12, 2021
1 parent d72966e commit 866ced1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrow/src/array/array_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl<'a, Ptr, OffsetSize: StringOffsetSizeTrait> FromIterator<&'a Option<Ptr>>
where
Ptr: AsRef<str> + 'a,
{
/// Creates a `GenericStringArray` based on an iterator of `Option` references.
/// Creates a [`GenericStringArray`] based on an iterator of `Option` references.
fn from_iter<I: IntoIterator<Item = &'a Option<Ptr>>>(iter: I) -> Self {
// Convert each owned Ptr into &str and wrap in an owned `Option`
let iter = iter.into_iter().map(|o| o.as_ref().map(|p| p.as_ref()));
Expand All @@ -215,7 +215,7 @@ impl<'a, Ptr, OffsetSize: StringOffsetSizeTrait> FromIterator<Option<Ptr>>
where
Ptr: AsRef<str>,
{
/// Creates a `GenericStringArray` based on an iterator of `Option`s
/// Creates a [`GenericStringArray`] based on an iterator of `Option`s
fn from_iter<I: IntoIterator<Item = Option<Ptr>>>(iter: I) -> Self {
let iter = iter.into_iter();
let (_, data_len) = iter.size_hint();
Expand Down

0 comments on commit 866ced1

Please sign in to comment.