Logo

Programming-Idioms

History of Idiom 39 > diff from v37 to v38

Edit summary for version 38 by freecoder:
[Rust] Added indents

Version 37

2017-07-17, 06:20:57

Version 38

2018-12-17, 18:33:51

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Code
let ok=s.contains(word);
Code
let ok = s.contains(word);