Skip to content
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

fixed including a code snippet issue #1402

Open
wants to merge 1 commit into
base: master
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
4 changes: 2 additions & 2 deletions rustbook-ru/src/ch09-03-to-panic-or-not-to-panic.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ experimentation purposes, but don't want to include it for rustdoc testing
purposes. -->

```rust
{{#include ../listings/ch09-error-handling/listing-09-13/src/main.rs:here}}
{{#rustdoc_include ../listings/ch09-error-handling/listing-09-13/src/main.rs:here}}
```

<span class="caption">Листинг 9-13. Тип <code>Guess</code>, который будет создавать экземпляры только для значений от 1 до 100</span>
Expand All @@ -80,4 +80,4 @@ purposes. -->
Теперь, когда вы увидели полезные способы использования обобщённых типов `Option` и `Result` в стандартной библиотеке, мы поговорим о том, как работают обобщённые типы и как вы можете использовать их в своём коде.


[“Кодирование состояний и поведения на основе типов”]: ch17-03-oo-design-patterns.html#encoding-states-and-behavior-as-types
[“Кодирование состояний и поведения на основе типов”]: ch17-03-oo-design-patterns.html#encoding-states-and-behavior-as-types