-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove main function from doctests (#752)
* Remove main function from doctests * Add a explicit Ok return in doctest In order to use the ? operator, we need to make it clear the function returns a result instead of unit: https://doc.rust-lang.org/rustdoc/documentation-tests.html#using--in-doc-tests * Return unit error in order to extract the correct error type * Use ndarray::ShapeError error * Unwrap some Options * Remove empty main function from the prelude docs * Undo changes at the impl_constructors submodule * Remove needless main
- Loading branch information
1 parent
4d6188a
commit 7f67fdf
Showing
4 changed files
with
28 additions
and
57 deletions.
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
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