Skip to content

Commit f2d5a55

Browse files
authored
Fix typo (#4987)
**Which issue(s) this PR fixes**: Fixes # **What this PR does / why we need it**: This PR will fix misspell. **Docs Changes**: **Release Note**: Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 2287b71 commit f2d5a55

54 files changed

Lines changed: 99 additions & 99 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/fluent/command/cap_ctl.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ def prepare_option_parser
2828
@opts[:clear_capabilities] = true
2929
}
3030

31-
@op.on('--add [CAPABILITITY1,CAPABILITY2, ...]', "Add capabilities into Fluentd Ruby") {|s|
31+
@op.on('--add [CAPABILITY1,CAPABILITY2, ...]', "Add capabilities into Fluentd Ruby") {|s|
3232
@opts[:add_capabilities] = s
3333
}
3434

35-
@op.on('--drop [CAPABILITITY1,CAPABILITY2, ...]', "Drop capabilities from Fluentd Ruby") {|s|
35+
@op.on('--drop [CAPABILITY1,CAPABILITY2, ...]', "Drop capabilities from Fluentd Ruby") {|s|
3636
@opts[:drop_capabilities] = s
3737
}
3838

lib/fluent/command/fluentd.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
}
134134
end
135135

136-
op.on('--config-file-type VALU', 'guessing file type of fluentd configuration. yaml/yml or guess') { |s|
136+
op.on('--config-file-type VALUE', 'guessing file type of fluentd configuration. yaml/yml or guess') { |s|
137137
if (s == 'yaml') || (s == 'yml')
138138
cmd_opts[:config_file_type] = s.to_sym
139139
elsif (s == 'guess')

lib/fluent/config/element.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def initialize(name, arg, attrs, elements, unused = nil)
3131
@unused = unused || attrs.keys
3232
@v1_config = false
3333
@corresponding_proxies = [] # some plugins use flat parameters, e.g. in_http doesn't provide <format> section for parser.
34-
@unused_in = nil # if this element is not used in plugins, correspoing plugin name and parent element name is set, e.g. [source, plugin class].
34+
@unused_in = nil # if this element is not used in plugins, corresponding plugin name and parent element name is set, e.g. [source, plugin class].
3535

3636
# it's global logger, not plugin logger: deprecated message should be global warning, not plugin level.
3737
@logger = defined?($log) ? $log : nil

lib/fluent/config/section.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def self.generate(proxy, conf, logger, plugin_class, stack = [], strict_config_v
150150
end
151151
end
152152
unless section_params.has_key?(proxy.argument.first)
153-
logger.error "config error in:\n#{conf}" if logger # logger should exist, but somethimes it's nil (e.g, in tests)
153+
logger.error "config error in:\n#{conf}" if logger # logger should exist, but sometimes it's nil (e.g, in tests)
154154
raise ConfigError, "'<#{proxy.name} ARG>' section requires argument" + section_stack
155155
end
156156
# argument should NOT be deprecated... (argument always has a value: '')

lib/fluent/counter/store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def build_response(d)
156156
}
157157
end
158158

159-
# value is Hash. value requires these fileds.
159+
# value is Hash. value requires these fields.
160160
# :name, :total, :current, :type, :reset_interval, :last_reset_at, :last_modified_at
161161
def build_value(data)
162162
type = data['type'] || 'numeric'

lib/fluent/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def run
177177

178178
# @param conf [Fluent::Config]
179179
# @param supervisor [Bool]
180-
# @reutrn nil
180+
# @return nil
181181
def reload_config(conf, supervisor: false)
182182
@root_agent_mutex.synchronize do
183183
# configure first to reduce down time while restarting

lib/fluent/event.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def ensure_unpacked!(unpacker: nil)
247247
end
248248

249249
# This method returns MultiEventStream, because there are no reason
250-
# to surve binary serialized by msgpack.
250+
# to survey binary serialized by msgpack.
251251
def slice(index, num)
252252
ensure_unpacked!
253253
MultiEventStream.new(@unpacked_times.slice(index, num), @unpacked_records.slice(index, num))

lib/fluent/log/console_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
module Fluent
2020
class Log
2121
# Async gem which is used by http_server helper switched logger mechanism to
22-
# Console gem which isn't complatible with Ruby's standard Logger (since
22+
# Console gem which isn't compatible with Ruby's standard Logger (since
2323
# v1.17). This class adapts it to Fluentd's logger mechanism.
2424
class ConsoleAdapter < Console::Output::Terminal
2525
def self.wrap(logger)

lib/fluent/plugin/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def inspect
206206
end
207207

208208
def reloadable_plugin?
209-
# Engine can't capture all class variables. so it's forbbiden to use class variables in each plugins if enabling reload.
209+
# Engine can't capture all class variables. so it's forbidden to use class variables in each plugins if enabling reload.
210210
self.class.class_variables.empty?
211211
end
212212
end

lib/fluent/plugin/buf_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def resume
191191
queue.sort_by!{ |chunk| chunk.modified_at }
192192

193193
# If one of the files is corrupted, other files may also be corrupted and be undetected.
194-
# The time priods of each chunk are helpful to check the data.
194+
# The time periods of each chunk are helpful to check the data.
195195
if exist_broken_file
196196
log.info "Since a broken chunk file was found, it is possible that other files remaining at the time of resuming were also broken. Here is the list of the files."
197197
(stage.values + queue).each { |chunk|

0 commit comments

Comments
 (0)