Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Nov 2, 2021
1 parent c83774c commit fc94069
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions doc/rexml/tasks/rdoc/element.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ to retrieve the first text node in a specified element:

Use method
{Element#has_text?}[../../../../REXML/Element.html#method-i-has_text-3F]
to determine whethe the element has text:
to determine whether the element has text:

e = REXML::Element.new('foo')
e.has_text? # => false
Expand Down Expand Up @@ -486,7 +486,7 @@ to remove a specific namespace from the element:

Use method
{Element#namespace}[../../../../REXML/Element.html#method-i-namespace]
to retrieve a speficic namespace URI for the element:
to retrieve a specific namespace URI for the element:

xml_string = <<-EOT
<root>
Expand Down
2 changes: 1 addition & 1 deletion lib/rexml/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Document < Element
# d.to_s # => "<root><foo>Foo</foo><bar>Bar</bar></root>"
#
# When argument +document+ is given, it must be an existing
# document object, whose context and attributes (but not chidren)
# document object, whose context and attributes (but not children)
# are cloned into the new document:
#
# d = REXML::Document.new(xml_string)
Expand Down
2 changes: 1 addition & 1 deletion test/data/much_ado.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4735,7 +4735,7 @@ CLAUDIO, BENEDICK, HERO, BEATRICE, and Attendants</STAGEDIR>
<LINE>But they shall find, awaked in such a kind,</LINE>
<LINE>Both strength of limb and policy of mind,</LINE>
<LINE>Ability in means and choice of friends,</LINE>
<LINE>To quit me of them throughly.</LINE>
<LINE>To quit me of them thoroughly.</LINE>
</SPEECH>

<SPEECH>
Expand Down
4 changes: 2 additions & 2 deletions test/data/ofbiz-issues-full-177.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@
<!-- desc : Short description for attachment. -->
<!-- ispatch : Whether attachment is a patch file. -->
<!-- filename : Filename of attachment. -->
<!-- submitter_id : Issuezilla ID of attachement submitter. -->
<!-- submitting_username : username of attachement submitter. -->
<!-- submitter_id : Issuezilla ID of attachment submitter. -->
<!-- submitting_username : username of attachment submitter. -->
<!-- data : Encoded attachment. -->
<!-- attachment_iz_url : URL to attachment in iz. -->

Expand Down
4 changes: 2 additions & 2 deletions test/data/test/tests.xml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
<valueOf select="name(/.)"></valueOf>
<valueOf select="name(/self::node())"></valueOf>

<!-- name of root elemet -->
<!-- name of root element -->
<valueOf select="name(node())">web-app</valueOf>
<valueOf select="name(/node())">web-app</valueOf>
<valueOf select="name(/*)">web-app</valueOf>
Expand All @@ -318,7 +318,7 @@
<valueOf select="name(parent::node())"></valueOf>
<valueOf select="name(parent::*)"></valueOf>

<!-- name of root elemet -->
<!-- name of root element -->
<valueOf select="name()">web-app</valueOf>
<valueOf select="name(.)">web-app</valueOf>
<valueOf select="name(../*)">web-app</valueOf>
Expand Down
2 changes: 1 addition & 1 deletion test/data/tutorial.xml
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ el1 &lt;&lt; Text.new(" cruel world")
strings.</p>

<p>I can't emphasize this enough, because people do have problems with
this. REXML can't possibly alway guess correctly how your text is
this. REXML can't possibly always guess correctly how your text is
encoded, so it always assumes the text is UTF-8. It also does not warn
you when you try to add text which isn't properly encoded, for the
same reason. You must make sure that you are adding UTF-8 text.
Expand Down

0 comments on commit fc94069

Please sign in to comment.