Skip to content
Myr

Merge pull request #399 from dtolnay/okvalue

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Align naming between Ok function argument and its documentation

authored by David Tolnay · committed by GitHub · parents 2081692, 863791a · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/lib.rs+2 added-2 removed
644 unmodified lines
645/// | |646/// | consider giving this pattern the explicit type `std::result::Result<i32, E>`, where the type parameter `E` is specified647/// ```648#[allow(non_snake_case)]649pub fn Ok<T>(t: T) -> Result<T> {650 Result::Ok(t)649pub fn Ok<T>(value: T) -> Result<T> {650 Result::Ok(value)651}652653// Not public API. Referenced by macro-generated code.654#[doc(hidden)]
78 unmodified lines