1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-28 11:31:32 +02:00

Minor updates based on instruction (#1583)

This contains some minor updates from #1565.

---------

Co-authored-by: Marshall Pierce <575695+marshallpierce@users.noreply.github.com>
This commit is contained in:
Dustin J. Mitchell
2023-12-13 07:51:34 -05:00
committed by GitHub
parent 35442ad424
commit 9563f055e2
3 changed files with 30 additions and 26 deletions

View File

@ -42,6 +42,8 @@ struct Package {
impl Package {
// ANCHOR_END: Package
// ANCHOR: as_dependency
/// Return a representation of this package as a dependency, for use in
/// building other packages.
fn as_dependency(&self) -> Dependency {
// ANCHOR_END: as_dependency
Dependency {