Skip to content

Std traits exercise: Add link to playground #2765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/std-traits/exercise.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ minutes: 30

In this example, you will implement the classic
["ROT13" cipher](https://en.wikipedia.org/wiki/ROT13). Copy this code to the
playground, and implement the missing bits. Only rotate ASCII alphabetic
[playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=d3ad23a195b8c8f56a007cc6b1ab8eb8)
, and implement the missing bits. Only rotate ASCII alphabetic
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This encodes the current content of this exercise in the link, but that would not be automatically updated if/when the exercise changes. If there's a way to address that and ensure that the link always includes precisely the text below it on the slide, that would be great. Otherwise, I think either a link to the playground homepage or no link at all would be best.

A quick search shows that we have linked to specific playground gists in a few other places -- we should probably remove those as well!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found this crate. Maybe we can build something that automatically gets a playground link to the current code example. Possibly as a separate ci job?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oo, that's a good idea! Do you want to make an issue to track it?

characters, to ensure the result is still valid UTF-8.

```rust,editable
Expand Down