-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
minor: Fix double
API doc
#226
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -228,7 +228,7 @@ impl Datum { | |
} | ||
} | ||
|
||
/// Creates an 32bit floating point number. | ||
/// Creates an 64bit floating point number. | ||
/// | ||
/// Example: | ||
/// ```rust | ||
|
@@ -265,7 +265,7 @@ impl Datum { | |
} | ||
} | ||
|
||
/// Creates a date in `%Y-%m-%d` format, assume in utc timezone. | ||
/// Creates date literal in `%Y-%m-%d` format, assume in utc timezone. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Simply to make the doc consistent with other date APIs. |
||
/// | ||
/// See [`NaiveDate::from_str`]. | ||
/// | ||
|
@@ -289,7 +289,7 @@ impl Datum { | |
Ok(Self::date(date_from_naive_date(t))) | ||
} | ||
|
||
/// Create a date from calendar date (year, month and day). | ||
/// Create date literal from calendar date (year, month and day). | ||
/// | ||
/// See [`NaiveDate::from_ymd_opt`]. | ||
/// | ||
|
@@ -313,9 +313,9 @@ impl Datum { | |
Ok(Self::date(date_from_naive_date(t))) | ||
} | ||
|
||
/// Creates time in microseconds directly. | ||
/// Creates time literal in microseconds directly. | ||
/// | ||
/// It will returns error when it's negative or too large to fit in 24 hours. | ||
/// It will return error when it's negative or too large to fit in 24 hours. | ||
/// | ||
/// Example: | ||
/// | ||
|
@@ -364,7 +364,7 @@ impl Datum { | |
} | ||
} | ||
|
||
/// Creates time in microseconds in `%H:%M:%S:.f` format. | ||
/// Creates time literal in microseconds in `%H:%M:%S:.f` format. | ||
/// | ||
/// See [`NaiveTime::from_str`] for details. | ||
/// | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks weird. Fix it based on the doc: https://iceberg.apache.org/spec/#primitive-types