docs: fix transparent/opaque confusion in the conventions file

This commit is contained in:
Carlos Martín Nieto
2018-10-19 16:30:43 +02:00
parent 0a4284b1e2
commit 69cd414198

View File

@@ -156,8 +156,8 @@ typedef struct git_odb git_odb;
the library, and not within the application. This allows the type
to grow (or shrink) in size without rebuilding client code.
To preserve ABI compatibility, include an `int version` field in all opaque
structures, and initialize to the latest version in the construction call.
To preserve ABI compatibility, include an `int version` field in all transparent
structures, and initialize to the latest version in the constructor call.
Increment the "latest" version whenever the structure changes, and try to only
append to the end of the structure.