Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rust-101
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tom.andrivet
rust-101
Commits
280a8b6f
Commit
280a8b6f
authored
1 year ago
by
Théo Pirkl
Committed by
orestis.malaspin
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Typos et suggestions de corrections
parent
b41b6e3d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
book/src/part00.md
+1
-1
1 addition, 1 deletion
book/src/part00.md
book/src/part04.md
+2
-1
2 additions, 1 deletion
book/src/part04.md
with
3 additions
and
2 deletions
book/src/part00.md
+
1
−
1
View file @
280a8b6f
...
...
@@ -40,7 +40,7 @@ et l'initialisons avec la valeur du 1er élément de `tab` (ici la valeur est `1
### Structures de contrôle
Nous avons deux
`if`
dan
s
c
e code. Dans le premier
Voici deux extrait
s
d
e code. Dans le premier
```
rust,should_panic
const
SIZE
:
usize
=
0
;
if
SIZE
==
0
{
...
...
This diff is collapsed.
Click to expand it.
book/src/part04.md
+
2
−
1
View file @
280a8b6f
...
...
@@ -44,7 +44,8 @@ Ainsi, quand on fait
let
a
=
SomethingOrNothing
::
new
(
1
);
let
_b
=
a
;
```
on donne la propriété de la valeur
`SomethingOrNothing::new(1)`
à la variable
`a`
. Puis, quand transfère la propriété de la valeur
on donne la propriété de la valeur
`SomethingOrNothing::new(1)`
à la variable
`a`
. Puis, quand
on transfère la propriété de la valeur
`SomethingOrNothing::new(1)`
à la variable
`_b`
. Ainsi,
`a`
n'est plus lié à
`SomethingOrNothing::new(1)`
et ne peut plus rien transférer
comme données. Donc quand on fait
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment