Skip to content

Commit b9009ab

Browse files
authored
Merge pull request #399 from dtolnay/okvalue
Align naming between Ok function argument and its documentation
2 parents 2081692 + 863791a commit b9009ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,8 @@ pub trait Context<T, E>: context::private::Sealed {
646646
/// | consider giving this pattern the explicit type `std::result::Result<i32, E>`, where the type parameter `E` is specified
647647
/// ```
648648
#[allow(non_snake_case)]
649-
pub fn Ok<T>(t: T) -> Result<T> {
650-
Result::Ok(t)
649+
pub fn Ok<T>(value: T) -> Result<T> {
650+
Result::Ok(value)
651651
}
652652

653653
// Not public API. Referenced by macro-generated code.

0 commit comments

Comments
 (0)