July 07, 2006 [Issue 245] New: Typo in Regexp article | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=245 Summary: Typo in Regexp article Product: D Version: 0.158 Platform: PC OS/Version: All Status: NEW Severity: trivial Priority: P5 Component: www.digitalmars.com AssignedTo: bugzilla@digitalmars.com ReportedBy: clugdbug@yahoo.com.au "To check for a match of a string s with a regular expression in Ruby, use the ~= operator," should be "use the =~ operator". (Ruby isn't D!) And the example which says: sub(s, "[ar]", delegate char[] (RegExp m) { return toupper(m.match(0)); }, "g"); // result: StRAp A Rocket engine on A chicken. would be even more impressive with the new delegate syntax as: sub(s, "[ar]", (RegExp m) { return toupper(m.match(0)); }, "g"); // result: StRAp A Rocket engine on A chicken. Optional: mention that toupper() comes from std.string. -- |
July 08, 2006 [Issue 245] Typo in Regexp article | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=245 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2006-07-07 22:50 ------- Fixed. -- |
Copyright © 1999-2021 by the D Language Foundation