Skip to content

Commit 4f6c70a

Browse files
committed
DOCS-563 minor edits
1 parent c1ea714 commit 4f6c70a

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

source/core/object-id.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ helper attribute and methods:
3939

4040
- ``str``
4141

42-
The hexadecimal string value of the ``ObjectID()`` object.
42+
The hexadecimal string value of the ``ObjectId()`` object.
4343

4444
- :method:`getTimestamp() <ObjectId.getTimestamp()>`
4545

@@ -51,7 +51,7 @@ helper attribute and methods:
5151
returned string literal has the format "``ObjectId(...)``".
5252

5353
.. versionchanged:: 2.2
54-
In previous versions :method:`ObjectId.toString()>` returns the
54+
In previous versions :method:`ObjectId.toString()` returns the
5555
value of the ObjectId as a hexadecimal string.
5656

5757
- :method:`valueOf() <ObjectId.valueOf()>`
@@ -60,10 +60,10 @@ helper attribute and methods:
6060
The returned string is the ``str`` attribute.
6161

6262
.. versionchanged:: 2.2
63-
In previous versions :method:`ObjectId.valueOf()>` returns the
64-
value of the ObjectId as a hexadecimal string.
63+
In previous versions :method:`ObjectId.valueOf()` returns the
64+
``ObjectId()`` object.
6565

66-
Consider the example uses of the ``ObjectID()`` class in the
66+
Consider the example uses of the ``ObjectId()`` class in the
6767
:program:`mongo` shell:
6868

6969
- To generate a new ObjectId, use the ``ObjectId()`` constructor with
@@ -92,7 +92,8 @@ Consider the example uses of the ``ObjectID()`` class in the
9292

9393
ObjectId("507f191e810c19729de860ea")
9494

95-
- To return the timestamp of an ``ObjectId()`` object:
95+
- To return the timestamp of an ``ObjectId()`` object, use the
96+
:method:`getTimestamp() <ObjectId.getTimestamp()>` method as follows:
9697

9798
.. code-block:: javascript
9899

source/reference/method/ObjectId.toString.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ ObjectId.toString()
1212

1313
.. versionchanged:: 2.2
1414
In previous versions :method:`ObjectId.toString()` returns the
15-
value of the ObjectId as a hexadecmial string.
15+
value of the ObjectId as a hexadecimal string.
1616

1717
In the following example, call the :method:`toString()
18-
<ObjectId.toString()>` method on an ObjectID
18+
<ObjectId.toString()>` method on an ObjectId
1919
(e.g. ``ObjectId("507c7f79bcf86cd7994f6c0e")``), as follows:
2020

2121
.. code-block:: javascript

source/reference/method/ObjectId.valueOf.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ObjectId.valueOf()
1515
the ``ObjectId()`` object.
1616

1717
In the following example, call the :method:`valueOf()
18-
<ObjectId.valueOf()>` method on an ObjectID
18+
<ObjectId.valueOf()>` method on an ObjectId
1919
(e.g. ``ObjectId("507c7f79bcf86cd7994f6c0e")``), as follows:
2020

2121
.. code-block:: javascript

0 commit comments

Comments
 (0)