Skip to content

todo! documentation should mention optional format arguments #116130

Closed
@Marcono1234

Description

@Marcono1234

Location

https://doc.rust-lang.org/std/macro.todo.html

Summary

The documentation of the todo! macro currently does not mention at all that it also accepts optional format arguments, for example:

todo!("with {}", 1);

Other macros like unimplemented! at least have the following sentence under "Panics":

Like panic!, this macro has a second form for displaying custom values.

So maybe it would be good to do the following?

Metadata

Metadata

Assignees

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libsRelevant to the library team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions