Skip to content

document field init shorthand #38830

Closed
Closed
@nikomatsakis

Description

RFC 1682 added "field init shorthand" (tracking issue is #37340), which allows you to use a shorthand in struct literals:

struct Foo { x } => struct Foo { x: x }

This is implemented on nightly and we would like to stabilize it, but documentation is required. Here is a list of places where the documentation would need to be updated, kindly prepared by @havvy:

I'm marking this as E-mentor, since updating these docs seems like a pretty good starter bug.

Metadata

Assignees

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions