Skip to content

Commit f1039dc

Browse files
author
Brice Figureau
committed
Fix some minor typo in the diff object documentation
I noticed a few mistakes while reading the API documentation, and I couldn't resist to fix them.
1 parent 697cbb9 commit f1039dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/dev/api/v1/objects/diff.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ Returns the value of the resource from the new catalog.
9494
}
9595
}
9696
97-
# Demonstrates structure and old_value
97+
# Demonstrates structure and new_value
9898
diff.structure #=> ['parameters', 'content']
99-
diff.old_value #=> 'This is the NEW FILE!!!!!'
99+
diff.new_value #=> 'This is the NEW FILE!!!!!'
100100
```
101101

102102
#### `#old_file` (String)
@@ -107,7 +107,7 @@ Note that this is a pass-through of information provided in the Puppet catalog,
107107

108108
Note also that if the diff represents addition of a resource, this will return `nil`, because the resource does not exist in the old catalog.
109109

110-
#### `#old_file` (String)
110+
#### `#old_line` (String)
111111

112112
Returns the line number within the Puppet manifest giving rise to the resource as it exists in the old catalog. (See `#old_file` for the filename of the Puppet manifest.)
113113

0 commit comments

Comments
 (0)