Skip to content
Merged

Typos #1102

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ super method would have been defined in `default/module/setup.rb`). The
`sections` object is of the {YARD::Templates::Section} class and allows sections to be inserted
before or after another section using {Array#place} by it's given name rather
than index. This allows the overriding of templates in a way that does not
depend on where the section is located (since it may have been overriden by
depend on where the section is located (since it may have been overridden by
another module).

You can also use `sections[:name]` to find the first child section named `:name`.
Expand Down
2 changes: 1 addition & 1 deletion lib/yard/gem_index.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Backward compatability for gem specification lookup
# Backward compatibility for gem specification lookup
# @see Gem::SourceIndex
module YARD
module GemIndex
Expand Down
4 changes: 2 additions & 2 deletions lib/yard/i18n/pot_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module I18n
# ".pot". PO file is an acronym for "Portable Object". PO file has
# many parts of message ID (msgid) that is translation target
# message and message string (msgstr) that is translated message
# of message ID. If you want to tranlsate "Hello" in English into
# of message ID. If you want to translate "Hello" in English into
# "Bonjour" in French, "Hello" is the msgid ID and "Bonjour" is
# msgstr. The extension for PO is ".po".
#
Expand Down Expand Up @@ -116,7 +116,7 @@ def parse_files(files)
# when the generater is created is prepended to each path in location.
#
# Comments of the +Message+ are used to generate the
# translater-comment line that is started with "# ".
# translator-comment line that is started with "# ".
#
# @return [String] POT format string
def generate
Expand Down
4 changes: 2 additions & 2 deletions lib/yard/i18n/text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ def initialize(input, options = {})
# Extracts translation target messages from +@input+.
#
# @yield [:attribute, name, value, line_no] the block that
# recieves extracted an attribute in header. It may called many
# receives extracted an attribute in header. It may called many
# times.
# @yieldparam [String] name the name of extracted attribute.
# @yieldparam [String] value the value of extracted attribute.
# @yieldparam [Integer] line_no the defined line number of extracted
# attribute.
# @yield [:paragraph, text, start_line_no] the block that
# recieves extracted a paragraph in body. Paragraph is a text
# receives extracted a paragraph in body. Paragraph is a text
# block separated by one or more empty lines. Empty line is a
# line that contains only zero or more whitespaces. It may
# called many times.
Expand Down
14 changes: 7 additions & 7 deletions po/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -2409,7 +2409,7 @@ msgstr ""
"最終的に、@!attributeタグを用い@!methodタグを\n"
"置換する事によって属性の様にメソッドのタグが出来る。\n"
"読み込み専用,書込み専用,読み書きOK,個々に指定を宣言する為に\n"
"@!attirbute指令は[r], [w], [rw]フラグ用に受け入れる\n"
"@!attribute指令は[r], [w], [rw]フラグ用に受け入れる\n"

#: ../docs/GettingStarted.md:241
msgid ""
Expand Down Expand Up @@ -6265,7 +6265,7 @@ msgid ""
"before or after another section using {Array#place} by it's given name "
"rather\n"
"than index. This allows the overriding of templates in a way that does not\n"
"depend on where the section is located (since it may have been overriden by\n"
"depend on where the section is located (since it may have been overridden by\n"
"another module)."
msgstr ""
"superメソッドが呼び出された後でセクションが変更されたか確認する。\n"
Expand Down Expand Up @@ -9598,7 +9598,7 @@ msgid ""
"Two new tags were added to the list of builtin meta-tags in YARD. "
"`@abstract`\n"
"marks a class/module/method as abstract while `@private` marks an object\n"
"as \"private\". The latter tag is unsed in situations where an object is "
"as \"private\". The latter tag is used in situations where an object is "
"public\n"
"due to Ruby's own visibility limitations (constants, classes and modules\n"
"can never be private) but not actually part of your public API. You should\n"
Expand Down Expand Up @@ -18717,7 +18717,7 @@ msgid ""
"\".pot\". PO file is an acronym for \"Portable Object\". PO file has\n"
"many parts of message ID (msgid) that is translation target\n"
"message and message string (msgstr) that is translated message\n"
"of message ID. If you want to tranlsate \"Hello\" in English into\n"
"of message ID. If you want to translate \"Hello\" in English into\n"
"\"Bonjour\" in French, \"Hello\" is the msgid ID and \"Bonjour\" is\n"
"msgstr. The extension for PO is \".po\"."
msgstr ""
Expand Down Expand Up @@ -18893,7 +18893,7 @@ msgstr ""
#: ../lib/yard/i18n/pot_generator.rb:118
msgid ""
"Comments of the +Message+ are used to generate the\n"
"translater-comment line that is started with \"# \"."
"translator-comment line that is started with \"# \"."
msgstr ""

# @return [String]
Expand Down Expand Up @@ -18962,7 +18962,7 @@ msgstr ""
#: ../lib/yard/i18n/text.rb:34
msgid ""
"the block that\n"
"recieves extracted a paragraph in body. Paragraph is a text\n"
"receives extracted a paragraph in body. Paragraph is a text\n"
"block separated by one or more empty lines. Empty line is a\n"
"line that contains only zero or more whitespaces. It may\n"
"called many times."
Expand All @@ -18972,7 +18972,7 @@ msgstr ""
#: ../lib/yard/i18n/text.rb:34
msgid ""
"the block that\n"
"recieves extracted an attribute in header. It may called many\n"
"receives extracted an attribute in header. It may called many\n"
"times."
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion spec/cli/yardoc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def tag_hidden(tag)
@yardoc.parse_arguments('--tag', 'foo:Title of Foo')
end

it "accepts --tag without title (and default to captialized tag name)" do
it "accepts --tag without title (and default to capitalized tag name)" do
expect(Tags::Library).to receive(:define_tag).with('Foo', :foo, nil)
@yardoc.parse_arguments('--tag', 'foo')
end
Expand Down
2 changes: 1 addition & 1 deletion spec/handlers/examples/constant_handler_001.rb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ end
# @attr [Number] baz Another attr
# @!attribute new_syntax
# Attribute defined with the new syntax
# @return [Symbol] something usefull
# @return [Symbol] something useful
DocstringStruct = Struct.new(:bar, :baz, :new_syntax)
2 changes: 1 addition & 1 deletion spec/parser/source_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def x; end
expect(Registry.at('Hello2#x').docstring).to eq "ANOTHER PASS"
end

it "takes preceeding comments only if they exist" do
it "takes preceding comments only if they exist" do
YARD.parse_string <<-eof
# PASS
module Hello # FAIL
Expand Down
2 changes: 1 addition & 1 deletion templates/default/fulldoc/html/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def serialize_file(file, title = nil) # rubocop:disable Lint/UnusedMethodArgumen
#
# Generates a file to the output with the specified contents.
#
# @example saving a custom html file to the documenation root
# @example saving a custom html file to the documentation root
#
# asset('my_custom.html','<html><body>Custom File</body></html>')
#
Expand Down