Skip to content

type keyword no generics example #114281

Closed

Description

Location

https://doc.rust-lang.org/stable/std/keyword.type.html

Summary

The docs don't provide an example of a type with a generic, for example:

type ArcMutex<T> = Arc<Mutex<T>>;

While it is fairly obvious, I think it'd be nice to have it documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: documentation for any part of the project, including the compiler, standard library, and toolsArea: documentation for any part of the project, including the compiler, standard library, and tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions