Commit Graph

14 Commits

Author SHA1 Message Date
Sunface
b4d39f8bf9 Update en/src/pattern-match/patterns.md 2023-07-02 09:33:39 +08:00
shirjs
a3b94a8871 Grammatical change from needs to requires
Both sentences are grammatically correct, as the verbs "requires" and "needs" can be used interchangeably in this context. However, the first sentence sounds more formal and is more commonly used in written English, especially in technical or academic contexts.

In the context of your sentences (which are about programming), the first sentence:

"Using pattern &mut V to match a mutable reference requires you to be very careful, due to V being a value after matching"

sounds more suitable. It implies that the action (using the pattern &mut V) necessitates caution on the part of the user, due to the specific circumstance (that V becomes a value after matching).

The second sentence:

"Using pattern &mut V to match a mutable reference needs you to be very careful, due to V being a value after matching"

is also correct but it sounds slightly less formal and is less commonly used in this kind of context. The verb "needs" is more often used to describe a necessity or requirement for a person or thing, rather than an action.
2023-06-19 08:19:39 +03:00
Zarkli Leonardo
1a5f76b00b fix: add and fix solution links 2023-01-20 20:01:54 +08:00
katopz
168e004d28 fix: wrong ```` 2022-10-11 10:11:06 +07:00
katopz
de36f5cfb0 fix: unnecessary space 2022-10-11 09:44:22 +07:00
Tal-Chaim
d54b651287 Fixed wrong print. 2022-10-08 22:39:44 +03:00
Sunface
a2efc570a7 Update en/src/pattern-match/match-iflet.md 2022-05-05 08:33:09 +08:00
Tanish-Eagle
4f821522a5 Fixed the mistakes in patterns 2022-05-04 14:42:49 +05:30
Tanish-Eagle
f8da722d42 Fixed the mistakes in match-iflet 2022-05-04 14:02:32 +05:30
sunface
c1d8b06518 update repo layout 2022-03-23 20:04:00 +08:00
sunface
b8009cfe83 update project structure 2022-02-28 21:32:54 +08:00
sunface
d4a716d36c update readme 2022-02-23 17:11:31 +08:00
sunface
ef6c4f80a1 roll back 2022-02-23 15:22:14 +08:00
sunface
f15bccde29 add chinese zh repo 2022-02-23 15:14:41 +08:00