mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[DOC] Languages in Examples (#15697)
* [DOC] Languages in Examples * Update doc/contributing/documentation_guide.md Co-authored-by: Jeremy Evans <code@jeremyevans.net> * Update doc/contributing/documentation_guide.md Co-authored-by: Jeremy Evans <code@jeremyevans.net> --------- Co-authored-by: Jeremy Evans <code@jeremyevans.net>
This commit is contained in:
parent
af30e4714c
commit
e69f41a0a8
Notes:
git
2025-12-22 22:53:20 +00:00
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
@ -326,6 +326,16 @@ Alternatives:
|
||||
- Example {source}[https://github.com/ruby/ruby/blob/34d802f32f00df1ac0220b62f72605827c16bad8/doc/contributing/glossary.md?plain=1].
|
||||
- Corresponding {output}[https://docs.ruby-lang.org/en/master/contributing/glossary_md.html].
|
||||
|
||||
### Languages in Examples
|
||||
|
||||
For symbols and strings in documentation examples:
|
||||
|
||||
- Prefer \English in \English documentation: <tt>'Hello'</tt>.
|
||||
- Prefer Japanese in Japanese documentation: <tt>'こんにちは'</tt>.
|
||||
- If a second language is needed (as, for example, characters with different byte-sizes),
|
||||
prefer Japanese in \English documentation and \English in Japanese documentation.
|
||||
- Use other languages examples only as necessary: see String#capitalize.
|
||||
|
||||
## Documenting Classes and Modules
|
||||
|
||||
The general structure of the class or module documentation should be:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user