rust-book-fr icon indicating copy to clipboard operation
rust-book-fr copied to clipboard

Problème d'alignement dans un message d'erreur du 12.4

Open luidnel-maignan opened this issue 1 year ago • 0 comments

  • [x] I have checked the latest french-release branch to see if this has already been fixed
  • [x] I have searched existing issues and pull requests for duplicates

URL to the section(s) of the book with this problem: https://jimskapt.github.io/rust-book-fr/ch12-04-testing-the-librarys-functionality.html

Description of the problem: Actuellement, les lignes 12 et 13 du premier encart qui contient un message d'erreur sont:

28 | pub fn rechercher<'a>(recherche: &'a str, contenu: &'a str) -> Vec<&'a str> {
   |                  ++++             ++            ++              ++

Suggested fix: Ces lignes devraient être

28 | pub fn rechercher<'a>(recherche: &'a str, contenu: &'a str) -> Vec<&'a str> {
   |                  ++++             ++                ++              ++

C'est à dire que quatre espaces sont ajoutés après le premier "++".

luidnel-maignan avatar Nov 23 '24 08:11 luidnel-maignan