Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ impl u32 {
<details>
- Prefix for constructor-style, `From`-trait-style functions.

- These functions can take multiple arguments, but usually imply the user is
doing more of the work than a usual constructor would.

`new` is still preferred for most constructor-style functions, the implication
for `from` is transformation of one data type to another.
- `new` is preferred for constructor-style functions, the implication for `from`
is transformation of one data type to another.

- Ask: Without looking at the standard library documentation, what would the
argument type of `u32::from_be` be?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl <T> OnceCell {
<details>
- Gets are trivial, they get a value!

Immutable by default, for the most part.
Immutable by default.

Should not panic. May return an option or result, depending on the framework.

Expand Down