Skip to content

Commit d5e02c3

Browse files
Rix URL's in Rust course
1 parent 338e152 commit d5e02c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+123
-120
lines changed

courses/comprehensive_rust_training/020_hello_world/03_playground.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Playground
66
Playground
77
------------
88

9-
The `Rust Playground <https://play.rust-lang.org/>`__ provides an easy
9+
The :url:`Rust Playground <https://play.rust-lang.org/>` provides an easy
1010
way to run short Rust programs, and is the basis for the examples and
1111
exercises in this course. Try running the "hello-world" program it
1212
starts with. It comes with a few handy features:

courses/comprehensive_rust_training/030_types_and_values/01_hello_world.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Key points:
4343

4444
- Rust uses macros for situations where you want to have a variable
4545
number of arguments (no function
46-
`overloading <../control-flow-basics/functions.md>`__).
46+
:url:`overloading <../control-flow-basics/functions.md>`).
4747

4848
- Macros being 'hygienic' means they don't accidentally capture
4949
identifiers from the scope they are used in. Rust macros are actually

courses/comprehensive_rust_training/040_control_flow_basics/01_if.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
--------------------
88

99
You use
10-
`if expressions <https://doc.rust-lang.org/reference/expressions/if-expr.html#if-expressions>`__
10+
:url:`if expressions <https://doc.rust-lang.org/reference/expressions/if-expr.html#if-expressions>`
1111
exactly like ``if`` statements in other languages:
1212

1313
.. code:: rust,editable

courses/comprehensive_rust_training/040_control_flow_basics/03_loops.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ There are three looping keywords in Rust: ``while``, ``loop``, and
1414
-----------
1515

1616
The
17-
`while keyword <https://doc.rust-lang.org/reference/expressions/loop-expr.html#predicate-loops>`__
17+
:url:`while keyword <https://doc.rust-lang.org/reference/expressions/loop-expr.html#predicate-loops>`
1818
works much like in other languages, executing the loop body as long as
1919
the condition is true.
2020

courses/comprehensive_rust_training/040_control_flow_basics/04_break_continue.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
----------------------------
88

99
If you want to immediately start the next iteration use
10-
`continue <https://doc.rust-lang.org/reference/expressions/loop-expr.html#continue-expressions>`__.
10+
:url:`continue <https://doc.rust-lang.org/reference/expressions/loop-expr.html#continue-expressions>`.
1111

1212
If you want to exit any kind of loop early, use
13-
`break <https://doc.rust-lang.org/reference/expressions/loop-expr.html#break-expressions>`__.
13+
:url:`break <https://doc.rust-lang.org/reference/expressions/loop-expr.html#break-expressions>`.
1414
With ``loop``, this can take an optional expression that becomes the
1515
value of the ``loop`` expression.
1616

courses/comprehensive_rust_training/040_control_flow_basics/07_macros.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ end. The Rust standard library includes an assortment of useful macros.
1212

1313
- ``println!(format, ..)`` prints a line to standard output, applying
1414
formatting described in
15-
`std::fmt <https://doc.rust-lang.org/std/fmt/index.html>`__.
15+
:url:`std::fmt <https://doc.rust-lang.org/std/fmt/index.html>`.
1616
- ``format!(format, ..)`` works just like ``println!`` but returns the
1717
result as a string.
1818
- ``dbg!(expression)`` logs the value of the expression and returns it.

courses/comprehensive_rust_training/040_control_flow_basics/08_exercise.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Exercise: Collatz Sequence
77
----------------------------
88

99
The
10-
`Collatz Sequence <https://en.wikipedia.org/wiki/Collatz_conjecture>`__ is
10+
:url:`Collatz Sequence <https://en.wikipedia.org/wiki/Collatz_conjecture>` is
1111
defined as follows, for an arbitrary n1 greater than zero:
1212

1313
- If *ni* is 1, then the sequence terminates at *ni*.

courses/comprehensive_rust_training/070_user_defined_types/02_tuple_structs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Details
6666
- Operator overloading is discussed on Day 3 (generics).
6767

6868
- The example is a subtle reference to the
69-
`Mars Climate Orbiter <https://en.wikipedia.org/wiki/Mars_Climate_Orbiter>`__
69+
:url:`Mars Climate Orbiter <https://en.wikipedia.org/wiki/Mars_Climate_Orbiter>`
7070
failure.
7171

7272
.. raw:: html

courses/comprehensive_rust_training/070_user_defined_types/03_enums.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Rust has several optimizations it can employ to make enums take up less
9393
space.
9494

9595
- Null pointer optimization: For
96-
`some types <https://doc.rust-lang.org/std/option/#representation>`__, Rust
96+
:url:`some types <https://doc.rust-lang.org/std/option/#representation>`, Rust
9797
guarantees that ``size_of::<T>()`` equals ``size_of::<Option<T>>()``.
9898

9999
Example code if you want to show how the bitwise representation *may*

courses/comprehensive_rust_training/070_user_defined_types/04_aliases.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interchangeably.
2929
Details
3030
---------
3131

32-
- A `newtype <tuple-structs.html>`__ is often a better alternative
32+
- A :url:`newtype <tuple-structs.html>` is often a better alternative
3333
since it creates a distinct type. Prefer
3434
``struct InventoryCount(usize)`` to ``type InventoryCount = usize``.
3535

0 commit comments

Comments
 (0)