From 161c17a3ccf0a8620f91dab1026c307e83630254 Mon Sep 17 00:00:00 2001 From: Noriyo Akita Date: Sat, 6 Jan 2018 21:34:06 +0900 Subject: [PATCH] Fix typo mutli to multi (#5547) * tools/formatter: Fix typo mutli -> multi * Fix typo in comment Mutliple -> Multiple --- src/compiler/crystal/tools/formatter.cr | 4 ++-- src/file.cr | 2 +- src/io.cr | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compiler/crystal/tools/formatter.cr b/src/compiler/crystal/tools/formatter.cr index 45f599724eb5..38b2bd33be36 100644 --- a/src/compiler/crystal/tools/formatter.cr +++ b/src/compiler/crystal/tools/formatter.cr @@ -3522,12 +3522,12 @@ module Crystal else write " " end - format_mutli_assign_values node.values + format_multi_assign_values node.values false end - def format_mutli_assign_values(values) + def format_multi_assign_values(values) if values.size == 1 accept_assign_value values.first else diff --git a/src/file.cr b/src/file.cr index cad9896d37f1..eea242886133 100644 --- a/src/file.cr +++ b/src/file.cr @@ -520,7 +520,7 @@ class File < IO::FileDescriptor end # Yields an `IO` to read a section inside this file. - # Mutliple sections can be read concurrently. + # Multiple sections can be read concurrently. def read_at(offset, bytesize, &block) self_bytesize = self.size diff --git a/src/io.cr b/src/io.cr index 98b46392880f..d528fe2f84ec 100644 --- a/src/io.cr +++ b/src/io.cr @@ -1115,7 +1115,7 @@ abstract class IO # The `IO` class raises on this method, but some subclasses, notable # `File` and `IO::Memory` implement it. # - # Mutliple sections can be read concurrently. + # Multiple sections can be read concurrently. def read_at(offset, bytesize, &block) raise Error.new "Unable to read_at" end