Skip to content

Update links to reflect domain change #557

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 2 commits 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
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ This book was designed for easily diving into and getting skilled with Rust It's

## Reading online

- [https://practice.rs](https://practice.rs)
- [https://practice.course.rs](https://practice.course.rs)

## Features

2 changes: 1 addition & 1 deletion en/src/generics-traits/trait-object.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Trait Object
In [traits chapter](https://practice.rs/generics-traits/traits.html#returning-types-that-implement-traits) we have seen that we can't use `impl Trait` when returning multiple types.
In [traits chapter](https://practice.course.rs/generics-traits/traits.html#returning-types-that-implement-traits) we have seen that we can't use `impl Trait` when returning multiple types.

Another limitation of arrays is that they can only store elements of one type. Using enums is not a bad solution when we have a fixed set of types at compile time, but trait objects would be more flexible and powerful.

2 changes: 1 addition & 1 deletion en/src/type-conversions/others.md
Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@ fn main() {
```

### Deref
You can find all the examples and exercises of the `Deref` trait [here](https://practice.rs/smart-pointers/deref.html).
You can find all the examples and exercises of the `Deref` trait [here](https://practice.course.rs/smart-pointers/deref.html).

### Transmute
`std::mem::transmute` is a **unsafe function** can be used to reinterprets the bits of a value of one type as another type. Both of the original and the result types must have the same size and neither of them can be invalid.
4 changes: 2 additions & 2 deletions en/src/why-exercise.md
Original file line number Diff line number Diff line change
@@ -15,8 +15,8 @@ This book was designed for easily diving into and getting skilled with Rust, and

## Reading online

- [English](https://practice.rs)
- [简体中文](https://zh.practice.rs)
- [English](https://practice.course.rs)
- [简体中文](https://practice-zh.course.rs/)


## Running locally
2 changes: 1 addition & 1 deletion practices/doc-comments/Readme.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
## Doc comments
A practice project used in [Comments and Docs](https://practice.rs/comments-docs.html) chapter.
A practice project used in [Comments and Docs](https://practice.course.rs/comments-docs.html) chapter.
2 changes: 1 addition & 1 deletion practices/hello-package/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Hello Package
A practice project used in [Crate and Module](https://practice.rs/crate-module/crate.html) chapter.
A practice project used in [Crate and Module](https://practice.course.rs/crate-module/crate.html) chapter.

This project will guide us to create a package with a binary crate and several library crates in it.

2 changes: 1 addition & 1 deletion zh-CN/src/generics-traits/trait-object.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 特征对象
在[特征练习中](https://practice.rs/generics-traits/traits.html#returning-types-that-implement-traits) 我们已经知道当函数返回多个类型时,`impl Trait` 是无法使用的。
在[特征练习中](https://practice-zh.course.rs/generics-traits/traits.html#returning-types-that-implement-traits) 我们已经知道当函数返回多个类型时,`impl Trait` 是无法使用的。

对于数组而言,其中一个限制就是无法存储不同类型的元素,但是通过之前的学习,大家应该知道枚举可以在部分场景解决这种问题,但是这种方法局限性较大。此时就需要我们的主角登场了。

2 changes: 1 addition & 1 deletion zh-CN/src/type-conversions/others.md
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ fn main() {
```

### Deref 特征
Deref 特征在[智能指针 - Deref](https://practice.rs/smart-pointers/deref.html)章节中有更加详细的介绍。
Deref 特征在[智能指针 - Deref](https://practice-zh.course.rs/smart-pointers/deref.html)章节中有更加详细的介绍。

### transmute
`std::mem::transmute` 是一个 unsafe 函数,可以把一个类型按位解释为另一个类型,其中这两个类型必须有同样的位数( bits )。
2 changes: 1 addition & 1 deletion zh-CN/src/why-exercise.md
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@

## 在线阅读

- [https://zh.practice.rs](https://zh.practice.rs)
- [https://practice-zh.course.rs/](https://practice-zh.course.rs/)

## 本地运行